Skip to content

Commit 79d22cf

Browse files
committed
ci: Test 64-bit and 32-bit bindings
Target x86_64-unknown-linux-gnu was already the default but make it explicit wrt i686. Signed-off-by: Mickaël Salaün <mic@digikod.net>
1 parent 229f152 commit 79d22cf

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/rust.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,20 @@ jobs:
137137
rustup self update
138138
rustup default ${{ env.RUST_TOOLCHAIN }}
139139
rustup update ${{ env.RUST_TOOLCHAIN }}
140+
rustup target add i686-unknown-linux-gnu
141+
rustup target add x86_64-unknown-linux-gnu
140142
141-
- name: Build
142-
run: rustup run ${{ env.RUST_TOOLCHAIN }} cargo build --verbose
143+
- name: Build (x86_64)
144+
run: rustup run ${{ env.RUST_TOOLCHAIN }} cargo build --target x86_64-unknown-linux-gnu --verbose
143145

144-
- name: Build tests
145-
run: rustup run ${{ env.RUST_TOOLCHAIN }} cargo build --tests --verbose
146+
- name: Build (x86)
147+
run: rustup run ${{ env.RUST_TOOLCHAIN }} cargo build --target i686-unknown-linux-gnu --verbose
146148

147-
- name: Run tests against the local kernel (Landlock ABI ${{ env.LANDLOCK_CRATE_TEST_ABI }})
148-
run: rustup run ${{ env.RUST_TOOLCHAIN }} cargo test --verbose
149+
- name: Run tests against the local kernel (Landlock ABI ${{ env.LANDLOCK_CRATE_TEST_ABI }} on x86_64)
150+
run: rustup run ${{ env.RUST_TOOLCHAIN }} cargo test --target x86_64-unknown-linux-gnu --verbose
151+
152+
- name: Run tests against the local kernel (Landlock ABI ${{ env.LANDLOCK_CRATE_TEST_ABI }} on x86)
153+
run: rustup run ${{ env.RUST_TOOLCHAIN }} cargo test --target i686-unknown-linux-gnu --verbose
149154

150155
- name: Run tests against Linux 6.1
151156
run: CARGO="rustup run ${{ env.RUST_TOOLCHAIN }} cargo" ./landlock-test-tools/test-rust.sh linux-6.1 2

0 commit comments

Comments
 (0)