Skip to content

Commit b944a7d

Browse files
authored
Merge pull request #283 from Jakuje/i686
ci: Run tests also on i686
2 parents 83790f2 + 6a12b51 commit b944a7d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ jobs:
9595
matrix:
9696
target:
9797
- x86_64-unknown-linux-gnu
98+
- i686-unknown-linux-gnu
9899
toolchain:
99100
- stable
100101
- "1.77" # MSRV
@@ -107,8 +108,14 @@ jobs:
107108
default: true
108109
- name: Install SoftHSM
109110
run: |
110-
sudo apt-get update -y -qq &&
111-
sudo apt-get install -y -qq libsofthsm2 &&
111+
if [ "${{ matrix.target }}" = "i686-unknown-linux-gnu" ]; then
112+
sudo dpkg --add-architecture i386
113+
sudo apt-get update -y -qq
114+
sudo apt-get install -y -qq gcc-multilib:i386 libsofthsm2:i386 gcc:i386
115+
else
116+
sudo apt-get update -y -qq
117+
sudo apt-get install -y -qq libsofthsm2
118+
fi
112119
mkdir /tmp/tokens
113120
echo "directories.tokendir = /tmp/tokens" > /tmp/softhsm2.conf
114121
- name: Install Rust target

cryptoki/tests/basic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,6 +1856,7 @@ fn sha256_digest_multipart_already_initialized() -> TestResult {
18561856
Ok(())
18571857
}
18581858

1859+
#[cfg(target_pointer_width = "64")]
18591860
#[test]
18601861
#[serial]
18611862
fn gcm_param_graceful_failure() -> TestResult {

0 commit comments

Comments
 (0)