-
Notifications
You must be signed in to change notification settings - Fork 740
100 lines (80 loc) · 2.73 KB
/
compilers.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
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
name: Compiler Integration Tests
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
# TODO (@carsonradtke)
# - [ ] Xcode
# - [ ] VS_LLVM
gcc:
strategy:
matrix:
cxx_version: [ 14, 17, 20 ]
build_type: [ 'Debug', 'Release' ]
gcc_version: [ 12, 13, 14 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: create build directory
run: mkdir build
- name: cmake configure
working-directory: build
run: |
CC=gcc-${{ matrix.gcc_version }}
CXX=g++-${{ matrix.gcc_version }}
cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DGSL_CXX_STANDARD=${{ matrix.cxx_version }} -DCI_TESTING:BOOL=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -Werror=dev -DCMAKE_CXX_COMPILER=g++-${{ matrix.gcc_version }} ..
- name: build
working-directory: build
run: make
- name: test
working-directory: build
run: make test
clang:
strategy:
matrix:
cxx_version: [ 14, 17, 20 ]
build_type: [ 'Debug', 'Release' ]
clang_version: [ 16, 17, 18 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: create build directory
run: mkdir build
- name: cmake configure
working-directory: build
run: |
CC=clang-${{ matrix.clang_version }}
CXX=clang++-${{ matrix.clang_version }}
cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DGSL_CXX_STANDARD=${{ matrix.cxx_version }} -DCI_TESTING:BOOL=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -Werror=dev -DCMAKE_CXX_COMPILER=g++-${{ matrix.gcc_version }} ..
- name: build
working-directory: build
run: make
- name: test
working-directory: build
run: make test
VS_MSVC:
strategy:
matrix:
generator: [ "Visual Studio 16 2019", "Visual Studio 17 2022" ]
cxx_version: [ 14, 17, 20 ]
build_type: [ 'Debug', 'Release' ]
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: microsoft/setup-msbuild@v1
- name: create build directory
run: mkdir build
- name: cmake configure
working-directory: build
run: cmake -G "${{ matrix.generator }}" -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DGSL_CXX_STANDARD=${{ matrix.cxx_version }} -DCI_TESTING:BOOL=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -Werror=dev ..
- name: build
working-directory: build
run: msbuild GSL.sln
- name: test
working-directory: build
run: ctest . --output-on-failure --no-compress-output