-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (69 loc) · 1.81 KB
/
testing.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
64
65
66
67
68
69
name: Testing
on: [push, workflow_dispatch]
jobs:
Linux:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- cc: /usr/bin/gcc
cxx: /usr/bin/g++
cxx_standard: 20
- cc: /usr/bin/gcc
cxx: /usr/bin/g++
cxx_standard: 17
- cc: /usr/bin/gcc
cxx: /usr/bin/g++
cxx_standard: 14
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
CXX_STANDARD: ${{ matrix.cxx_standard }}
steps:
- uses: actions/checkout@v3
- name: Configure
run: bash ${{github.workspace}}/ci/configure.sh
- name: Build
run: bash ${{github.workspace}}/ci/build.sh
- name: Run Tests
run: bash ${{github.workspace}}/ci/run_test.sh
Windows:
runs-on: windows-latest
strategy:
matrix:
include:
- cc: cl.exe
cxx: cl.exe
use_vswhere: "ON"
- cc: clang.exe
cxx: clang++.exe
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
USE_VSWHERE: ${{ matrix.use_vswhere }}
CODE_COVERAGE: ${{ matrix.code_coverage }}
steps:
- uses: actions/checkout@v3
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Configure
shell: pwsh
run: ${{github.workspace}}/ci/configure.ps1
- name: Build
shell: pwsh
run: ${{github.workspace}}/ci/build.ps1
- name: Run Tests
shell: pwsh
run: ${{github.workspace}}/ci/run_test.ps1
macOS:
runs-on: macos-latest
env:
CXX_STANDARD: 14
GENERATOR: Xcode
steps:
- uses: actions/checkout@v3
- name: Configure
run: bash ${{github.workspace}}/ci/configure.sh
- name: Build
run: bash ${{github.workspace}}/ci/build.sh
- name: Run Tests
run: bash ${{github.workspace}}/ci/run_test.sh