Skip to content

Commit 2d2efcc

Browse files
committed
Add CI test for wolfSM + wolfSSL
1 parent 5bb447d commit 2d2efcc

1 file changed

Lines changed: 63 additions & 0 deletions

File tree

.github/workflows/wolfsm.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: wolfSM Tests
2+
3+
# START OF COMMON SECTION
4+
on:
5+
push:
6+
branches: [ 'master', 'main', 'release/**' ]
7+
pull_request:
8+
branches: [ '*' ]
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
# END OF COMMON SECTION
14+
15+
jobs:
16+
make_check:
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
config: [
21+
# Core SM TLS cipher suites
22+
'--enable-sm2 --enable-sm3 --enable-sm4-gcm --enable-sm4-ccm --enable-sha3',
23+
# All SM4 modes
24+
'--enable-sm2 --enable-sm3 --enable-sm4-ecb --enable-sm4-cbc --enable-sm4-ctr --enable-sm4-gcm --enable-sm4-ccm --enable-sha3',
25+
# SM + all features integration test
26+
'--enable-all --enable-sm2 --enable-sm3 --enable-sm4-ecb --enable-sm4-cbc --enable-sm4-ctr --enable-sm4-gcm --enable-sm4-ccm',
27+
]
28+
name: make check
29+
if: github.repository_owner == 'wolfssl'
30+
runs-on: ubuntu-24.04
31+
timeout-minutes: 10
32+
steps:
33+
- uses: actions/checkout@v4
34+
name: Checkout wolfSSL
35+
36+
- uses: actions/checkout@v4
37+
name: Checkout wolfsm
38+
with:
39+
repository: wolfssl/wolfsm
40+
path: wolfsm
41+
42+
- name: Install wolfsm
43+
working-directory: wolfsm
44+
run: ./install.sh $GITHUB_WORKSPACE
45+
46+
- name: Test wolfSSL with wolfSM
47+
run: |
48+
./autogen.sh
49+
./configure ${{ matrix.config }}
50+
make
51+
make check
52+
53+
- name: Print errors
54+
if: ${{ failure() }}
55+
run: |
56+
for file in scripts/*.log
57+
do
58+
if [ -f "$file" ]; then
59+
echo "${file}:"
60+
cat "$file"
61+
echo "========================================================================"
62+
fi
63+
done

0 commit comments

Comments
 (0)