-
Notifications
You must be signed in to change notification settings - Fork 16
61 lines (46 loc) · 1.92 KB
/
build-and-test.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Build and Test
on:
push:
branches: [ 'master', 'main', 'release/**' ]
pull_request:
branches: [ '*' ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# List host CPU info
- name: Host CPU info
run: cat /proc/cpuinfo
# List compiler version
- name: List compiler version
run: gcc --version
# pull and build wolfssl
- name: Checkout wolfssl
uses: actions/checkout@v4
with:
repository: wolfssl/wolfssl
path: wolfssl
# Build and test standard build
- name: Build and test
run: cd test && make clean && make WOLFSSL_DIR=../wolfssl run
# Build and test ASAN build, with wolfCrypt tests enabled.
# since wolfCrypt tests aren't all passing yet - this is just a status indicator
- name: Build and test ASAN TESTWOLFCRYPT (wolfCrypt tests OK to fail)
run: cd test && make clean && make ASAN=1 TESTWOLFCRYPT=1 WOLFSSL_DIR=../wolfssl run
# Build and test ASAN build, with wolfCrypt tests enabled and using the DMA devId.
# since wolfCrypt tests aren't all passing yet - this is just a status indicator
- name: Build and test ASAN TESTWOLFCRYPT TESTWOLFCRYPT_DMA
run: cd test && make clean && make ASAN=1 TESTWOLFCRYPT=1 TESTWOLFCRYPT_DMA=1 WOLFSSL_DIR=../wolfssl run
# Build and test debug build with ASAN and NOCRYPTO
- name: Build and test ASAN DEBUG NOCRYPTO
run: cd test && make clean && make DEBUG=1 ASAN=1 NOCRYPTO=1 WOLFSSL_DIR=../wolfssl run
# Build and test debug build with ASAN
- name: Build and test ASAN DEBUG
run: cd test && make clean && make DEBUG=1 ASAN=1 WOLFSSL_DIR=../wolfssl run
# Build and test debug build with SHE
- name: Build and test SHE
run: cd test && make clean && make SHE=1 WOLFSSL_DIR=../wolfssl run
## Test structure padding
#- name: Check structure padding
# run: cd test && make clean && make checkpadding