forked from wolfSSL/wolfip
-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (60 loc) · 1.75 KB
/
multi-compiler.yml
File metadata and controls
73 lines (60 loc) · 1.75 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Multiple Compilers
on:
push:
branches: [ 'master', 'main', 'release/**' ]
pull_request:
branches: [ '*' ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
compiler_test:
name: ${{ matrix.cc }}
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- cc: gcc-11
- cc: gcc-12
- cc: gcc-13
- cc: clang-14
- cc: clang-15
- cc: clang-17
steps:
- name: Install compiler
run: |
sudo apt-get update
sudo apt-get install -y ${{ matrix.cc }}
- name: Checkout wolfIP
uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies
run: |
sudo apt-get install -y autoconf automake libtool pkg-config check
sudo modprobe tun
- name: Clone and build wolfSSL from nightly-snapshot
run: |
git clone --depth=1 https://github.com/wolfssl/wolfssl --branch nightly-snapshot /tmp/wolfssl
cd /tmp/wolfssl
./autogen.sh
./configure --enable-all --enable-md5
make -j$(nproc)
sudo make install
sudo ldconfig
- name: Build wolfIP with ${{ matrix.cc }}
run: |
mkdir -p build/port
make CC=${{ matrix.cc }}
- name: Build unit tests
run: make unit CC=${{ matrix.cc }}
- name: Run unit tests
run: ./build/test/unit
- name: Build ESP unit tests
run: make unit-esp CC=${{ matrix.cc }}
- name: Run ESP unit tests
run: ./build/test/unit-esp
- name: Run standalone TTL expired test
run: ./build/test-ttl-expired