-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (38 loc) · 1.07 KB
/
build_and_test.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
name: Build and test
on:
merge_group:
pull_request:
push:
# branches: [main]
jobs:
build-and-test:
strategy:
matrix:
buildtype: [debug, release]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Update apt repositories for ccache
run: sudo apt update
- name: Set up ccache
uses: hendrikmuhs/[email protected]
with:
key: ccache-linux-${{ matrix.buildtype }}
- name: Setup compiler and build tools
run: sudo apt install --no-install-recommends --yes g++-12 meson ninja-build
- name: Configure
run: |
CXX="ccache g++-12" meson setup \
--buildtype ${{ matrix.buildtype }} \
--warnlevel 3 \
--werror \
-Dcatch2:werror=false \
-Dcli11:werror=false \
-Dfmt:werror=false \
-Dnlohmann_json:werror=false \
-Dsqlite3:werror=false \
build .
- name: Build
run: ninja -C build
- name: Test
run: ./build/unit