-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1.16 KB
/
gcc.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
name: gcc
on:
push:
pull_request:
branches:
- master
- develop
jobs:
build:
name: ${{matrix.toolset}} - ${{matrix.build_config}}
strategy:
matrix:
build_config:
- debug
- release
toolset:
- g++-10
- g++-11
- g++-12
include:
- toolset: g++-10
std: 20
os: ubuntu-20.04
- toolset: g++-11
std: 20
os: ubuntu-22.04
- toolset: g++-12
std: 20
os: ubuntu-22.04
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout/@v3
with:
submodules: recursive
- name: Configure
run: |
chmod +x ./vendor/premake/linux/premake5
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install ${{matrix.toolset}}
- name: Generate build files
run: ./vendor/premake/linux/premake5 gmake2 --std=${{matrix.std}}
- name: Build
run: make config=${{matrix.build_config}} CXX=${{matrix.toolset}} tests
- name: Tests
run: ./bin/${{matrix.build_config}}-linux-x86_64/tests/tests