-
-
Notifications
You must be signed in to change notification settings - Fork 30
59 lines (54 loc) · 2.06 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
name: Meson
on:
pull_request:
push:
branches:
- main
jobs:
nix-build-develop-gcc:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
# sanitizer: [ none, thread, undefined ]
sanitizer: [ none, address, undefined ]
buildtype: [ release, debug ]
ndebug: [ "true", "false" ]
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- run: nix develop --command meson setup build/ -Dwerror=true --buildtype=${{ matrix.buildtype }} -Db_sanitize=${{ matrix.sanitizer }} -Db_ndebug=${{ matrix.ndebug }}
- run: nix develop --command meson compile -C build
- run: nix develop --command meson test -C build
- uses: actions/upload-artifact@v3
if: failure()
with:
name: nix-build-develop-gcc-testlog-${{ matrix.sanitizer }}-${{ matrix.ndebug }}-${{ matrix.buildtype }}
path: build/meson-logs/testlog.txt
nix-build-develop-clang:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
sanitizer: [ none ]
buildtype: [ release, debug ]
ndebug: [ "true", "false" ]
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- run: nix develop .#llvm --command env CXX=clang++ meson setup build/ -Dwerror=true --buildtype=${{ matrix.buildtype }} -Db_sanitize=${{ matrix.sanitizer }} -Db_ndebug=${{ matrix.ndebug }}
- run: nix develop .#llvm --command meson compile -C build
- run: nix develop .#llvm --command meson test -C build
- uses: actions/upload-artifact@v3
if: failure()
with:
name: nix-build-develop-clang-testlog-${{ matrix.sanitizer }}-${{ matrix.ndebug }}-${{ matrix.buildtype }}
path: build/meson-logs/testlog.txt