Skip to content

Commit 9d6fd32

Browse files
committed
ci: Run tests also on i686
Related: #282 Signed-off-by: Jakub Jelen <[email protected]>
1 parent 68813c6 commit 9d6fd32

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

.github/actions/ci_script/action.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Installs SoftHSM and executes tests"
44
runs:
55
using: "composite"
66
steps:
7-
- name: Install SoftHSM
7+
- name: Install & set up SoftHSM (64b)
88
run: |
99
sudo apt-get update -y -qq &&
1010
sudo apt-get install -y -qq libsofthsm2 &&
@@ -35,3 +35,20 @@ runs:
3535
SOFTHSM2_CONF: /tmp/softhsm2.conf
3636
run: ./ci.sh
3737
shell: bash
38+
39+
- name: Install SoftHSM (32b) and ix86 dependencies
40+
run: |
41+
sudo dpkg --add-architecture i386 &&
42+
sudo apt-get update -y -qq &&
43+
sudo apt-get remove -y -qq libsofthsm2 &&
44+
sudo apt-get install -y -qq gcc-multilib libsofthsm2:i386
45+
shell: bash
46+
47+
- name: Test script on i386
48+
env:
49+
TEST_PKCS11_MODULE: /usr/lib/softhsm/libsofthsm2.so
50+
SOFTHSM2_CONF: /tmp/softhsm2.conf
51+
TEST_TARGET: --target i686-unknown-linux-gnu
52+
run: ./ci.sh
53+
shell: bash
54+

ci.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,8 @@ RUST_BACKTRACE=1 cargo build --target x86_64-apple-darwin
3737
RUST_BACKTRACE=1 cargo build --target aarch64-apple-darwin
3838
RUST_BACKTRACE=1 cargo build --target x86_64-unknown-freebsd
3939

40-
RUST_BACKTRACE=1 cargo test
40+
if [[ -z "${TEST_TARGET:-}" ]]; then
41+
RUST_BACKTRACE=1 cargo test
42+
else
43+
RUST_BACKTRACE=1 cargo test $TEST_TARGET
44+
fi

0 commit comments

Comments
 (0)