Skip to content

Commit f5938c3

Browse files
committed
ci: use native arm github action runner
1 parent 4e2280b commit f5938c3

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
platform:
2323
- runner: ubuntu-22.04
2424
target: x86_64
25-
- runner: ubuntu-22.04
25+
- runner: ubuntu-22.04-arm
2626
target: aarch64
2727
steps:
2828
- uses: actions/checkout@v4
@@ -37,17 +37,6 @@ jobs:
3737
3.13
3838
- name: Build wheels
3939
uses: PyO3/maturin-action@v1
40-
if: ${{ matrix.platform.target == 'aarch64' }}
41-
with:
42-
target: ${{ matrix.platform.target }}
43-
args: --release --out dist --interpreter 3.10 3.11 3.12 --zig
44-
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
45-
manylinux: auto
46-
before-script-linux: |
47-
dnf install -y clang-libs clang || sudo apt install llvm-dev libclang-dev clang
48-
- name: Build wheels
49-
uses: PyO3/maturin-action@v1
50-
if: ${{ matrix.platform.target == 'x86_64' }}
5140
with:
5241
target: ${{ matrix.platform.target }}
5342
args: --release --out dist --interpreter 3.10 3.11 3.12 3.13 --zig
@@ -61,7 +50,6 @@ jobs:
6150
name: wheels-linux-${{ matrix.platform.target }}
6251
path: dist
6352
- name: pytest
64-
if: ${{ startsWith(matrix.platform.target, 'x86_64') }}
6553
shell: bash
6654
run: |
6755
set -e
@@ -75,24 +63,6 @@ jobs:
7563
pytest -m "pymc and not flow"
7664
uv pip install 'nutpie[all]' --find-links dist --force-reinstall
7765
pytest -m flow
78-
- name: pytest
79-
if: ${{ !startsWith(matrix.platform.target, 'x86') && matrix.platform.target != 'ppc64' }}
80-
uses: uraimo/run-on-arch-action@v3
81-
with:
82-
arch: ${{ matrix.platform.target }}
83-
distro: ubuntu22.04
84-
githubToken: ${{ github.token }}
85-
install: |
86-
apt-get update
87-
apt-get install -y --no-install-recommends python3 python3-pip curl make clang build-essential python3-dev
88-
curl -LsSf https://astral.sh/uv/install.sh | sh
89-
source $HOME/.local/bin/env
90-
run: |
91-
set -e
92-
source $HOME/.local/bin/env
93-
uv pip install --system -U pip pytest pytest-timeout
94-
uv pip install --system 'nutpie[all]' --find-links dist --force-reinstall
95-
pytest -m "not flow" # Skip flow tests, they are slow on emulated platforms
9666
9767
# pyarrow doesn't currently seem to work on musllinux
9868
#musllinux:

0 commit comments

Comments
 (0)