Skip to content

Commit 39c5c6a

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. While we're here we make some `pip install` behaviors more consistent.
1 parent 7501c85 commit 39c5c6a

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 10 additions & 6 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,20 +86,24 @@ 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: |
97-
python -m pip install --config-settings='--build-option=--rust-backend' -e .
99+
python -m pip -v install --config-settings='--build-option=--rust-backend' -e .
98100
99101
- name: Build (No Rust)
100-
if: matrix.arch != 'x64'
102+
if: matrix.arch == 'x86'
103+
env:
104+
PIP_CONSTRAINT: 'ci/constraints.txt'
101105
run: |
102-
python -m pip install -e .
106+
python -m pip -v install -e .
103107
104108
- name: Test C Backend
105109
run: |
@@ -112,7 +116,7 @@ jobs:
112116
pytest --numprocesses=auto --hypothesis-profile=${HYPOTHESIS_PROFILE} -v tests/
113117
114118
- name: Test Rust Backend
115-
if: matrix.arch == 'x64'
119+
if: matrix.arch != 'x86'
116120
# Rust backend is currently experimental. So ignore failures in it.
117121
continue-on-error: true
118122
env:

0 commit comments

Comments
 (0)