Skip to content

Commit a2babe3

Browse files
committed
ci: fix musllinux jobs using setup-python; use container python (-i python) for all Linux builds
1 parent 948887c commit a2babe3

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ jobs:
7070
uses: dtolnay/rust-toolchain@stable
7171

7272
- name: Set up Python (host)
73-
if: ${{ matrix.platform != 'linux-x86_64' && matrix.platform != 'linux-aarch64' }}
73+
if: ${{ matrix.platform == 'macos-universal2' || matrix.platform == 'windows-amd64' }}
7474
uses: actions/setup-python@v5
7575
with:
7676
python-version: ${{ matrix.python-interpreter }}
7777

7878
- name: Install build backend (host)
79-
if: ${{ matrix.platform != 'linux-x86_64' && matrix.platform != 'linux-aarch64' }}
79+
if: ${{ matrix.platform == 'macos-universal2' || matrix.platform == 'windows-amd64' }}
8080
run: |
8181
python -m pip install --upgrade pip
8282
pip install build maturin
@@ -95,7 +95,8 @@ jobs:
9595
yum -y install curl perl-core >/dev/null 2>&1 || true
9696
(perl -MText::Template -e1 >/dev/null 2>&1 || (curl -sL https://cpanmin.us | perl - App::cpanminus Text::Template >/dev/null))
9797
# Build via root pyproject so distribution name is 'codex-python'
98-
args: --release -i ${{ matrix.python-interpreter }} -o dist
98+
# Use the default container python since we build abi3 once.
99+
args: --release -i python -o dist
99100

100101
- name: Build Linux aarch64 wheel (manylinux2014)
101102
if: ${{ matrix.platform == 'linux-aarch64' }}
@@ -108,7 +109,8 @@ jobs:
108109
yum -y install curl perl-core >/dev/null 2>&1 || true
109110
(perl -MText::Template -e1 >/dev/null 2>&1 || (curl -sL https://cpanmin.us | perl - App::cpanminus Text::Template >/dev/null))
110111
# Build via root pyproject so distribution name is 'codex-python'
111-
args: --release -i ${{ matrix.python-interpreter }} -o dist
112+
# Use the default container python since we build abi3 once.
113+
args: --release -i python -o dist
112114

113115
- name: Build Linux x86_64 wheel (musllinux_1_2)
114116
if: ${{ matrix.platform == 'linux-musl-x86_64' }}
@@ -120,7 +122,8 @@ jobs:
120122
before-script-linux: |
121123
apk add --no-cache curl perl perl-text-template >/dev/null 2>&1 || true
122124
# Build via root pyproject so distribution name is 'codex-python'
123-
args: --release -i ${{ matrix.python-interpreter }} -o dist
125+
# Use the default container python since we build abi3 once.
126+
args: --release -i python -o dist
124127

125128
- name: Build Linux aarch64 wheel (musllinux_1_2)
126129
if: ${{ matrix.platform == 'linux-musl-aarch64' }}
@@ -132,7 +135,8 @@ jobs:
132135
before-script-linux: |
133136
apk add --no-cache curl perl perl-text-template >/dev/null 2>&1 || true
134137
# Build via root pyproject so distribution name is 'codex-python'
135-
args: --release -i ${{ matrix.python-interpreter }} -o dist
138+
# Use the default container python since we build abi3 once.
139+
args: --release -i python -o dist
136140

137141
- name: Build macOS universal2 wheel
138142
if: ${{ matrix.platform == 'macos-universal2' }}

0 commit comments

Comments
 (0)