-
Notifications
You must be signed in to change notification settings - Fork 53
63 lines (53 loc) · 1.26 KB
/
main.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
61
62
63
on: [ push ]
jobs:
build-linux:
timeout-minutes: 10
runs-on: ubuntu-20.04
env:
CC: ${{ matrix.compiler.cc }}
CXX: ${{ matrix.compiler.cxx }}
strategy:
fail-fast: false
matrix:
compiler:
- cc: gcc-7
cxx: g++-7
- cc: gcc-8
cxx: g++-8
- cc: gcc-9
cxx: g++-9
- cc: gcc-10
cxx: g++-10
- cc: clang-8
cxx: clang++-8
- cc: clang-9
cxx: clang++-9
- cc: clang-10
cxx: clang++-10
steps:
- uses: actions/checkout@v4
- name: install compiler
run: |
sudo apt-get update
sudo apt-get install -y ${{ matrix.compiler.cc }}
sudo apt-get install -y ${{ matrix.compiler.cxx }}
- name: setup
run: |
./setup.sh
- name: build examples
run: |
bake examples --strict
build-windows:
timeout-minutes: 10
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- name: install bake
run: |
./setup.bat
- name: build examples
run: |
./bake examples --strict