From 9c8ef2f4a9baaa4b195e75883436bde3cf8170f8 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 9 Jun 2025 20:13:21 +0200 Subject: [PATCH 1/2] tests: Skip the overflow test on 32bit arch Signed-off-by: Jakub Jelen --- cryptoki/tests/basic.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/cryptoki/tests/basic.rs b/cryptoki/tests/basic.rs index 2cd3d4ab..aca611d1 100644 --- a/cryptoki/tests/basic.rs +++ b/cryptoki/tests/basic.rs @@ -1771,6 +1771,7 @@ fn sha256_digest_multipart_already_initialized() -> TestResult { Ok(()) } +#[cfg(target_pointer_width = "64")] #[test] #[serial] fn gcm_param_graceful_failure() -> TestResult { From f7646c95117fac571fd1969fe3a7943d8b6a1779 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 30 Jun 2025 15:49:32 +0200 Subject: [PATCH 2/2] ci: Run softhsm tests on i686 Signed-off-by: Jakub Jelen --- .github/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5fcdc321..ef472d56 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -94,6 +94,7 @@ jobs: matrix: target: - x86_64-unknown-linux-gnu + - i686-unknown-linux-gnu toolchain: - stable - "1.66.0" # MSRV @@ -105,8 +106,13 @@ jobs: toolchain: ${{ matrix.toolchain }} - name: Install SoftHSM run: | - sudo apt-get update -y -qq && - sudo apt-get install -y -qq libsofthsm2 && + sudo apt-get update -y -qq + if [ "{{ matrix.target }}" = "i686-unknown-linux-gnu" ]; then + sudo dpkg --add-architecture i386 && + sudo apt-get install -y -qq gcc-multilib:i386 libsofthsm2:i386 + else + sudo apt-get install -y -qq libsofthsm2 + fi mkdir /tmp/tokens echo "directories.tokendir = /tmp/tokens" > /tmp/softhsm2.conf - name: Install Rust target