-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·41 lines (37 loc) · 1.31 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: goto-bus-stop/[email protected]
with:
version: 0.10.0
- name: Install SoftHSM 2
env:
PKCS11_SOFTHSM2_MODULE: /usr/lib/softhsm/libsofthsm2.so
SOFTHSM2_CONF: /etc/softhsm/softhsm2.conf
run: |
sudo apt update
sudo apt install -f libsofthsm2 -y
sudo usermod -a -G softhsm $USER
mkdir -p $HOME/lib/softhsm/tokens && echo "directories.tokendir = $HOME/lib/softhsm/tokens" > $HOME/lib/softhsm/softhsm2.conf
sudo chown -R $USER:$USER $HOME/lib/softhsm
export SOFTHSM2_CONF=$HOME/lib/softhsm/softhsm2.conf
softhsm2-util --init-token --slot 0 --label "Test" --so-pin "1122334455" --pin "1122334455" --serial `shuf -i 0-9999 -n1`
- name: build
run: |
echo -e "Stage 3 test" && zig build test
rm -rf zig-cache
echo -e "Stage 1 test" && zig build test -fstage1
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: goto-bus-stop/[email protected]
with:
version: master
- run: |
rm -rf zig-cache
zig fmt --check --ast-check **.zig