Skip to content

Commit 59989b0

Browse files
committed
fix: allow build on arm64
--wip-- [with ci] fixed ci issues
1 parent 3e853e2 commit 59989b0

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ jobs:
1919
arch: x86_64
2020
- runs-on: buildjet-2vcpu-ubuntu-2204-arm
2121
arch: arm64
22-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
22+
python-version:
23+
- "3.9"
24+
- "3.10"
25+
- "3.11"
26+
- "3.12"
27+
- "3.13"
28+
2329
runs-on: ${{ matrix.platform.runs-on }}
2430
steps:
2531
- uses: actions/checkout@v4
@@ -28,6 +34,10 @@ jobs:
2834
with:
2935
python-version: ${{ matrix.python-version }}
3036

37+
- name: Update APT cache # BuildJet doesn't cache APT well
38+
if: startsWith(matrix.platform.runs-on, 'buildjet-')
39+
run: sudo apt-get update
40+
3141
- name: Install valgrind
3242
run: sudo apt-get install valgrind -y
3343

@@ -38,12 +48,12 @@ jobs:
3848

3949
- uses: actions/upload-artifact@v4
4050
with:
41-
name: wheel-${{ matrix.python-version }}-${{ runner.os }}
51+
name: wheel-${{ matrix.python-version }}-${{ matrix.platform.arch }}
4252
path: dist/*.whl
4353

44-
publish-wheels:
54+
publish:
4555
needs: build-wheels
46-
runs-on: ubuntu-latest
56+
runs-on: ubuntu-24.04
4757
steps:
4858
- uses: actions/download-artifact@v4
4959
with:
@@ -54,11 +64,17 @@ jobs:
5464
- uses: actions/setup-python@v2
5565
with:
5666
python-version: "3.12"
67+
68+
- uses: actions/download-artifact@v4
69+
with:
70+
merge-multiple: true
71+
path: dist/
72+
5773
- name: Build the source dist
5874
run: uv build --sdist --out-dir dist/
5975

6076
- name: List artifacts
61-
run: ls -l dist/
77+
run: ls -al dist/*
6278

6379
- if: github.event_name == 'push'
6480
name: Publish to PyPI

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@
1818
system = platform.system()
1919
current_arch = platform.machine()
2020

21+
print(f"System: {system} ({current_arch})")
22+
2123
IS_EXTENSION_BUILDABLE = system == "Linux" and current_arch in [
2224
"x86_64",
23-
"arm64",
25+
"aarch64",
2426
]
2527

2628
IS_EXTENSION_REQUIRED = (

0 commit comments

Comments
 (0)