Skip to content

Commit

Permalink
fix: allow build on arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
art049 committed Dec 5, 2024
1 parent c83c68b commit f8e082f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ jobs:
arch: x86_64
- runs-on: buildjet-2vcpu-ubuntu-2204-arm
arch: arm64
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"

runs-on: ${{ matrix.platform.runs-on }}
steps:
- uses: actions/checkout@v4
Expand All @@ -28,6 +34,10 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Update APT cache # BuildJet doesn't cache APT well
if: startsWith(matrix.platform.runs-on, 'buildjet-')
run: sudo apt-get update

- name: Install valgrind
run: sudo apt-get install valgrind -y

Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@
system = platform.system()
current_arch = platform.machine()

print(f"System: {system} ({current_arch})")

IS_EXTENSION_BUILDABLE = system == "Linux" and current_arch in [
"x86_64",
"arm64",
"aarch64",
]

IS_EXTENSION_REQUIRED = (
Expand Down

0 comments on commit f8e082f

Please sign in to comment.