Repository navigation
61 lines (54 loc) · 1.34 KB
/
Copy pathlinux.yml
File metadata and controls
61 lines (54 loc) · 1.34 KB
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
name: Linux
on:
push:
branches: [ master ]
paths: &shared_paths
- '**'
- '!**.yml'
- '!**.md'
- '**/linux.yml'
pull_request:
branches: [ master ]
paths: *shared_paths
jobs:
build:
name: ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- name: clang + ASan/UBSan
cc: clang
cxx: clang++
sanitize: -Db_sanitize=address,undefined -Db_lundef=false
runner: ubuntu-24.04
- name: gcc
cc: gcc
cxx: g++
sanitize: ''
runner: ubuntu-24.04
- name: gcc (arm64)
cc: gcc
cxx: g++
sanitize: ''
runner: ubuntu-24.04-arm
runs-on: ${{ matrix.runner }}
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
CXXFLAGS: -Werror
steps:
- uses: actions/checkout@v7
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y meson ninja-build libncurses-dev
- name: Meson setup
run: meson setup builddir ${{ matrix.sanitize }}
- name: Build
run: meson compile -C builddir
- name: Test
run: meson test -C builddir
env:
ASAN_OPTIONS: abort_on_error=1
UBSAN_OPTIONS: halt_on_error=1:print_stacktrace=1