-
Notifications
You must be signed in to change notification settings - Fork 5
62 lines (60 loc) · 1.74 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
name: Build Nautilus
run-name: ${{ github.actor }} builds Nautilus
on: [ push ]
jobs:
build-test:
runs-on: ${{matrix.os}}
name: Build on ${{ matrix.os }} with ${{ matrix.cc }} ${{ matrix.flags }}
strategy:
fail-fast: false
matrix:
include:
- os: 'ubuntu-20.04'
cc: 'gcc-10'
cxx: 'g++-10'
flags: ''
- os: 'ubuntu-22.04'
cc: 'gcc-10'
cxx: 'g++-10'
flags: ''
- os: 'ubuntu-22.04'
cc: 'gcc-10'
cxx: 'g++-10'
flags: '-DUSE_SOURCE_LOCATION_TRACKING=OFF'
- os: 'ubuntu-22.04'
cc: 'clang-15'
cxx: 'clang++-15'
flags: ''
- os: 'macos-13'
cc: 'clang'
cxx: 'clang++'
flags: ''
- os: 'macos-14'
cc: 'clang'
cxx: 'clang++'
flags: ''
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
steps:
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- name: get cmake
uses: lukka/get-cmake@latest
- name: ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ github.job }}-${{ matrix.os }}-${{ matrix.cc }}
- name: cmake
shell: bash
run: |
cmake -DCMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache ${{ matrix.flags }} -G Ninja -S . -B .
- name: build
shell: bash
run: |
cmake --build . --target all
- name: test
shell: bash
run: |
ctest --output-on-failure