Skip to content

ci: Run tests also on i686 and fix them #283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/actions/ci_script/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Installs SoftHSM and executes tests"
runs:
using: "composite"
steps:
- name: Install SoftHSM
- name: Install & set up SoftHSM (64b)
run: |
sudo apt-get update -y -qq &&
sudo apt-get install -y -qq libsofthsm2 &&
Expand Down Expand Up @@ -35,3 +35,20 @@ runs:
SOFTHSM2_CONF: /tmp/softhsm2.conf
run: ./ci.sh
shell: bash

- name: Install SoftHSM (32b) and ix86 dependencies
run: |
sudo dpkg --add-architecture i386 &&
sudo apt-get update -y -qq &&
sudo apt-get remove -y -qq libsofthsm2 &&
sudo apt-get install -y -qq gcc-multilib libsofthsm2:i386
shell: bash

- name: Test script on i386
env:
TEST_PKCS11_MODULE: /usr/lib/softhsm/libsofthsm2.so
SOFTHSM2_CONF: /tmp/softhsm2.conf
TEST_TARGET: --target i686-unknown-linux-gnu
run: ./ci.sh
shell: bash

6 changes: 5 additions & 1 deletion ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ RUST_BACKTRACE=1 cargo build --target x86_64-apple-darwin
RUST_BACKTRACE=1 cargo build --target aarch64-apple-darwin
RUST_BACKTRACE=1 cargo build --target x86_64-unknown-freebsd

RUST_BACKTRACE=1 cargo test
if [[ -z "${TEST_TARGET:-}" ]]; then
RUST_BACKTRACE=1 cargo test
else
RUST_BACKTRACE=1 cargo test $TEST_TARGET
fi
Loading
Loading