-
Notifications
You must be signed in to change notification settings - Fork 34
114 lines (103 loc) · 3.08 KB
/
multi-compiler.yml
File metadata and controls
114 lines (103 loc) · 3.08 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: Multi-Compiler Tests
# START OF COMMON SECTION
on:
push:
branches: [ 'master', 'main', 'release/**' ]
pull_request:
branches: [ '*' ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# END OF COMMON SECTION
jobs:
build_wolfprovider:
name: Build with ${{ matrix.CC }}
runs-on: ${{ matrix.OS }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
include:
- CC: gcc-9
CXX: g++-9
OS: ubuntu-latest
wolfssl_ref: master
- CC: gcc-10
CXX: g++-10
OS: ubuntu-latest
wolfssl_ref: master
- CC: gcc-10
CXX: g++-10
OS: ubuntu-latest
wolfssl_ref: v5.7.4-stable
- CC: gcc-11
CXX: g++-11
OS: ubuntu-latest
wolfssl_ref: master
- CC: gcc-12
CXX: g++-12
OS: ubuntu-latest
wolfssl_ref: master
- CC: clang-12
CXX: clang++-12
OS: ubuntu-22.04
wolfssl_ref: master
- CC: clang-13
CXX: clang++-13
OS: ubuntu-22.04
wolfssl_ref: master
- CC: clang-14
CXX: clang++-14
OS: ubuntu-latest
wolfssl_ref: master
- CC: clang-15
CXX: clang++-15
OS: ubuntu-latest
wolfssl_ref: master
steps:
- name: Checkout wolfProvider
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y ${{ matrix.CC }} ${{ matrix.CXX }} automake libtool
# Check if this version of wolfssl/wolfprovider has already been built,
# mark to cache these items on post if we do end up building
- name: Checking wolfSSL/wolfProvider in cache
uses: actions/cache@v4
id: wolfprov-cache
with:
path: |
wolfssl-source
wolfssl-install
wolfprov-install
provider.conf
key: wolfprov-${{ matrix.wolfssl_ref }}-${{ matrix.CC }}-${{ github.sha }}
lookup-only: true
# If wolfssl/wolfprovider have not yet been built, pull ossl from cache
- name: Checking OpenSSL in cache
if: steps.wolfprov-cache.outputs.cache-hit != 'true'
uses: actions/cache@v4
id: openssl-cache
with:
path: |
openssl-source
openssl-install
key: ossl-${{ matrix.CC }}-depends
# If not yet built this version, build it now
- name: Build wolfProvider
if: steps.wolfprov-cache.outputs.cache-hit != 'true'
env:
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
run: |
WOLFSSL_TAG=${{ matrix.wolfssl_ref }} ./scripts/build-wolfprovider.sh
- name: Print errors
if: ${{ failure() }}
run: |
if [ -f test-suite.log ]; then
cat test-suite.log
fi
if [ -f config.log ]; then
cat config.log
fi