-
Notifications
You must be signed in to change notification settings - Fork 10
70 lines (68 loc) · 1.85 KB
/
build.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
name: 'Build'
on:
- 'push'
- 'pull_request'
jobs:
linux:
name: "Linux"
strategy:
fail-fast: false
matrix:
build_type:
- 'Release'
- 'Debug'
image:
- 'clang-11'
- 'clang-14'
- 'gcc-9'
- 'gcc-12'
runs-on: 'ubuntu-latest'
container:
image: 'ghcr.io/lmichaelis/images:${{matrix.image}}'
steps:
- uses: 'actions/checkout@v3'
- name: 'Configure'
run: 'cmake -B build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DPHOENIX_BUILD_EXAMPLES=ON'
- name: 'Build'
run: 'cmake --build build'
- name: 'Test'
working-directory: 'build/'
run: 'ctest --output-on-failure'
macos:
name: "MacOS"
strategy:
fail-fast: false
matrix:
xcode:
- '13'
build_type: [ 'Debug', 'Release' ]
env:
ASAN_OPTIONS: 'detect_container_overflow=0'
runs-on: 'macos-11'
steps:
- uses: 'actions/checkout@v3'
- uses: 'maxim-lobanov/setup-xcode@v1'
with:
xcode-version: '${{matrix.xcode}}'
- name: 'Configure'
run: 'cmake -B build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DPHOENIX_BUILD_EXAMPLES=ON'
- name: 'Build'
run: 'cmake --build build'
- name: 'Test'
working-directory: 'build/'
run: 'ctest --output-on-failure'
windows:
name: "Windows"
runs-on: 'windows-2019'
steps:
- uses: 'actions/checkout@v3'
with:
submodules: 'recursive'
- name: 'Configure'
shell: 'bash'
run: 'cmake -B build -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=Release -DPHOENIX_BUILD_EXAMPLES=ON'
- name: 'Build'
run: 'cmake --build build --config Release -j 2'
- name: 'Test'
working-directory: 'build/'
run: 'ctest -C Release --output-on-failure'