Skip to content

Commit 54dd2fb

Browse files
committed
Try to fix PyPI yet another time
1 parent a98cd64 commit 54dd2fb

1 file changed

Lines changed: 8 additions & 35 deletions

File tree

.github/workflows/release_pypi.yml

Lines changed: 8 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -26,44 +26,20 @@ jobs:
2626
# Linux wheels were omitted from the first 0.6.0 PyPI attempt and
2727
# are intentionally isolated here so existing filenames are not
2828
# uploaded again.
29-
- {
30-
NAME: linux-x64,
31-
OS: ubuntu-24.04,
32-
TOOLCHAIN: stable,
33-
TARGET: x86_64-unknown-linux-gnu,
34-
MANYLINUX: manylinux_2_28,
35-
}
36-
- {
37-
NAME: linux-x64,
38-
OS: ubuntu-24.04,
39-
TOOLCHAIN: stable,
40-
TARGET: x86_64-unknown-linux-musl,
41-
}
4229
- {
4330
NAME: linux-arm64,
4431
OS: ubuntu-24.04-arm,
4532
TOOLCHAIN: stable,
4633
TARGET: aarch64-unknown-linux-gnu,
4734
MANYLINUX: manylinux_2_28,
35+
ZIG: 0.14.1,
4836
}
4937
- {
5038
NAME: linux-arm64,
5139
OS: ubuntu-24.04-arm,
5240
TOOLCHAIN: stable,
5341
TARGET: aarch64-unknown-linux-musl,
54-
}
55-
- {
56-
NAME: linux-riscv64,
57-
OS: ubuntu-24.04,
58-
TOOLCHAIN: stable,
59-
TARGET: riscv64gc-unknown-linux-gnu,
60-
MANYLINUX: manylinux_2_31,
61-
}
62-
- {
63-
NAME: linux-riscv64,
64-
OS: ubuntu-24.04,
65-
TOOLCHAIN: stable,
66-
TARGET: riscv64gc-unknown-linux-musl,
42+
ZIG: 0.14.1,
6743
}
6844
steps:
6945
- name: Checkout
@@ -94,7 +70,7 @@ jobs:
9470
if: runner.os == 'Linux' && contains(matrix.build.TARGET, '-gnu')
9571
working-directory: pypi
9672
run: |
97-
uvx --from maturin==1.12.3 --with ziglang==0.15.1 \
73+
uvx --from maturin==1.12.3 --with ziglang==${{ matrix.build.ZIG }} \
9874
maturin build --release --target ${{ matrix.build.TARGET }} --zig --compatibility ${{ matrix.build.MANYLINUX }} --out dist
9975
10076
- name: Build Python wheels (Linux musllinux with Zig)
@@ -103,19 +79,16 @@ jobs:
10379
run: |
10480
sudo apt-get update
10581
sudo apt-get install -y musl-tools
106-
uvx --from maturin==1.12.3 --with ziglang==0.15.1 \
82+
uvx --from maturin==1.12.3 --with ziglang==${{ matrix.build.ZIG }} \
10783
maturin build --release --target ${{ matrix.build.TARGET }} --zig --out dist
10884
109-
- name: Build Python wheels (Windows/macOS)
85+
- name: Build Python wheel (Windows ARM64)
11086
if: runner.os != 'Linux'
11187
working-directory: pypi
88+
shell: bash
11289
run: |
113-
if [[ "${{ matrix.build.TARGET }}" == "aarch64-pc-windows-msvc" ]]; then
114-
uvx --from maturin==1.12.3 maturin build --release \
115-
--target aarch64-pc-windows-msvc --out dist
116-
else
117-
uv build --wheel --out-dir dist
118-
fi
90+
uvx --from maturin==1.12.3 maturin build --release \
91+
--target aarch64-pc-windows-msvc --out dist
11992
12093
- name: Publish wheels to PyPI
12194
run: uv publish --trusted-publishing always pypi/dist/*.whl

0 commit comments

Comments
 (0)