Skip to content

Commit 385a1e3

Browse files
committed
ci: fix python tests on x86 arch
1 parent 6fe7cce commit 385a1e3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
- name: Set up Python
4242
uses: actions/setup-python@v5
4343
with:
44+
architecture: ${{matrix.architecture}}
4445
python-version-file: "boreal-py/pyproject.toml"
4546

4647
- name: Build test helpers
@@ -77,7 +78,7 @@ jobs:
7778
run: |
7879
cd boreal-py
7980
uv sync --dev
80-
uv run --config-setting "build-args=--features=cuckoo" pytest
81+
uv run --config-setting "build-args=--features=cuckoo --target=${{matrix.target}}" pytest
8182
8283
strategy:
8384
fail-fast: false
@@ -86,8 +87,10 @@ jobs:
8687
include:
8788
- build: linux
8889
target: x86_64-unknown-linux-gnu
90+
architecture: x64
8991
- build: linux32
9092
target: i686-unknown-linux-gnu
93+
architecture: x86
9194

9295
test-windows:
9396
name: Test ${{matrix.build}}
@@ -127,6 +130,7 @@ jobs:
127130
- name: Set up Python
128131
uses: actions/setup-python@v5
129132
with:
133+
architecture: ${{matrix.architecture}}
130134
python-version-file: "boreal-py/pyproject.toml"
131135

132136
- uses: dtolnay/rust-toolchain@stable
@@ -152,7 +156,7 @@ jobs:
152156
run: |
153157
cd boreal-py
154158
uv sync --dev
155-
uv run pytest
159+
uv run --config-setting "build-args=--target=${{matrix.target}}" pytest
156160
157161
strategy:
158162
fail-fast: false
@@ -162,9 +166,11 @@ jobs:
162166
- build: windows
163167
vcpkg_triplet: x64-windows-static
164168
target: x86_64-pc-windows-msvc
169+
architecture: x64
165170
- build: windows32
166171
vcpkg_triplet: x86-windows-static
167172
target: i686-pc-windows-msvc
173+
architecture: x86
168174

169175
test-macos:
170176
name: Test ${{matrix.runner}}

0 commit comments

Comments
 (0)