Skip to content

Commit 15f5cc4

Browse files
committed
Fix tests on GitHub Actions
1 parent 371ff00 commit 15f5cc4

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,32 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v2
11-
- name: Execute CI script
12-
run: ./ci.sh
11+
- name: Setup Rust toolchain
12+
uses: actions-rs/toolchain@v1
13+
with:
14+
toolchain: stable
15+
16+
# - name: Execute CI script
17+
# run: ./ci.sh
18+
19+
- name: cargo build
20+
uses: actions-rs/cargo@v1
21+
with:
22+
command: build
23+
24+
- name: Install SoftHSM
25+
run: |
26+
apt-get update -y -qq &&
27+
apt-get install -y -qq libsofthsm2 &&
28+
mkdir /var/lib/softhsm/tokens
29+
30+
- name: cargo test
31+
uses: actions-rs/cargo@v1
32+
with:
33+
command: test
34+
env:
35+
PKCS11_SOFTHSM2_MODULE: /usr/lib/softhsm/libsofthsm2.so
36+
RUST_BACKTRACE: 1
1337

1438
links:
1539
name: Check links

0 commit comments

Comments
 (0)