@@ -32,14 +32,45 @@ jobs:
32
32
build :
33
33
name : Execute CI script
34
34
runs-on : ubuntu-latest
35
+ strategy :
36
+ matrix :
37
+ target :
38
+ - armv7-unknown-linux-gnueabi
39
+ - armv7-unknown-linux-gnueabihf
40
+ - arm-unknown-linux-gnueabi
41
+ - aarch64-unknown-linux-gnu
42
+ - i686-unknown-linux-gnu
43
+ - loongarch64-unknown-linux-gnu
44
+ - powerpc64-unknown-linux-gnu
45
+ - powerpc64le-unknown-linux-gnu
46
+ - x86_64-pc-windows-msvc
47
+ - x86_64-apple-darwin
48
+ - aarch64-apple-darwin
49
+ - x86_64-unknown-freebsd
50
+ - riscv64gc-unknown-linux-gnu
51
+ toolchain :
52
+ - stable
53
+ - " 1.66.0" # MSRV
35
54
steps :
36
55
- uses : actions/checkout@v4
37
56
- name : Setup Rust toolchain
38
57
uses : actions-rs/toolchain@v1
39
58
with :
40
- toolchain : stable
41
- - name : " Installs SoftHSM and execute tests"
42
- uses : ./.github/actions/ci_script
59
+ toolchain : ${{ matrix.toolchain }}
60
+ - name : Install SoftHSM
61
+ run : |
62
+ sudo apt-get update -y -qq &&
63
+ sudo apt-get install -y -qq libsofthsm2 &&
64
+ mkdir /tmp/tokens
65
+ echo "directories.tokendir = /tmp/tokens" > /tmp/softhsm2.conf
66
+ - name : Install Rust target
67
+ run : rustup target add ${{ matrix.target }}
68
+ - name : Test script
69
+ env :
70
+ TEST_PKCS11_MODULE : /usr/lib/softhsm/libsofthsm2.so
71
+ SOFTHSM2_CONF : /tmp/softhsm2.conf
72
+ TARGET : ${{ matrix.target }}
73
+ run : ./ci.sh
43
74
44
75
tests-kryoptic :
45
76
name : Run tests against Kryoptic
@@ -58,27 +89,14 @@ jobs:
58
89
RUST_BACKTRACE=1 cargo build --all-features &&
59
90
RUST_BACKTRACE=1 cargo test
60
91
61
-
62
- build-msrv :
63
- name : MSRV - Execute CI script
64
- runs-on : ubuntu-latest
65
- steps :
66
- - uses : actions/checkout@v4
67
- - name : Setup Rust toolchain on MSRV
68
- uses : actions-rs/toolchain@v1
69
- with :
70
- toolchain : 1.66.0
71
- - name : " Installs SoftHSM and execute tests"
72
- uses : ./.github/actions/ci_script
73
-
74
92
links :
75
93
name : Check links
76
94
runs-on : ubuntu-latest
77
95
steps :
78
- - uses : actions/checkout@v4
79
- - name : Link Checker
80
- uses : peter-evans/link-checker@v1
81
- with :
82
- args : -v -r *.md
83
- - name : Fail if there were link errors
84
- run : exit ${{ steps.lc.outputs.exit_code }}
96
+ - uses : actions/checkout@v4
97
+ - name : Link Checker
98
+ uses : peter-evans/link-checker@v1
99
+ with :
100
+ args : -v -r *.md
101
+ - name : Fail if there were link errors
102
+ run : exit ${{ steps.lc.outputs.exit_code }}
0 commit comments