forked from stephenberry/glaze
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 843 Bytes
/
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
name: gcc
on:
push:
branches:
- main
- feature/*
paths-ignore:
- '**.md'
pull_request:
branches: [main]
paths-ignore:
- '**.md'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
gcc: [10, 11, 12]
build_type: [Debug, Release]
std: [20, 23]
exclude:
- gcc: 10
std: 23
env:
CC: gcc-${{matrix.gcc}}
CXX: g++-${{matrix.gcc}}
steps:
- uses: actions/checkout@v3
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_CXX_STANDARD=${{matrix.std}}
- name: Build
run: cmake --build build -j 2
- name: Test
working-directory: build
run: ctest -j 2 --output-on-failure