Skip to content

Commit 37b00fa

Browse files
committed
ci: build and test Rust on ARM
I believe we didn't currently due this due to cross-compiling issues. Now that we've adopted native ARM runners everywhere we can have nice things. Windows x86 is still excluded. I don't want to spend brain cycles on that platform right now.
1 parent 7501c85 commit 37b00fa

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
architecture: ${{ matrix.arch }}
7878

7979
- name: Install Rust
80-
if: matrix.arch == 'x64'
80+
if: matrix.arch != 'x86'
8181
uses: dtolnay/rust-toolchain@v1
8282
with:
8383
toolchain: stable
@@ -86,18 +86,20 @@ jobs:
8686

8787
- name: Install Dependencies
8888
shell: bash
89+
env:
90+
PIP_CONSTRAINT: 'ci/constraints.txt'
8991
run: |
9092
python -m pip install --require-hashes -r ci/requirements.txt
9193
9294
- name: Build (Rust)
93-
if: matrix.arch == 'x64'
95+
if: matrix.arch != 'x86'
9496
env:
9597
PIP_CONSTRAINT: 'ci/constraints.txt'
9698
run: |
9799
python -m pip install --config-settings='--build-option=--rust-backend' -e .
98100
99101
- name: Build (No Rust)
100-
if: matrix.arch != 'x64'
102+
if: matrix.arch == 'x86'
101103
run: |
102104
python -m pip install -e .
103105
@@ -112,7 +114,7 @@ jobs:
112114
pytest --numprocesses=auto --hypothesis-profile=${HYPOTHESIS_PROFILE} -v tests/
113115
114116
- name: Test Rust Backend
115-
if: matrix.arch == 'x64'
117+
if: matrix.arch != 'x86'
116118
# Rust backend is currently experimental. So ignore failures in it.
117119
continue-on-error: true
118120
env:

0 commit comments

Comments
 (0)