Repository navigation
127 lines (121 loc) · 4.32 KB
/
Copy pathci.yml
File metadata and controls
127 lines (121 loc) · 4.32 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
gcc:
name: GCC 14
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Toolchain
run: |
sudo apt-get update
sudo apt-get install -y g++-14
python -m pip install --upgrade pip meson ninja
- name: Configure
# utf8_check compares the UTF-8 helpers with a plain copy of the WHATWG decoder; at the default
# `simd=none` it is a self-check of the portable path, and it is the only place the check runs
# without the SIMD workflow paying for a second build.
run: CXX=g++-14 meson setup builddir --buildtype=release -Dutf8_check=true -Dwerror=true
- name: Build
run: ninja -C builddir
- name: Test
run: meson test -C builddir --print-errorlogs
minimal:
name: Map only (text and array compiled out)
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Toolchain
run: |
sudo apt-get update
sudo apt-get install -y g++-14
python -m pip install --upgrade pip meson ninja
- name: Configure
run: CXX=g++-14 meson setup builddir --buildtype=release -Dtext=disabled -Darray=disabled -Dwerror=true
- name: Build
run: ninja -C builddir
- name: Test
run: meson test -C builddir --print-errorlogs
clang:
name: Clang 18, libc++, -Werror
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Toolchain
run: |
sudo apt-get update
sudo apt-get install -y clang-18 libc++-18-dev libc++abi-18-dev
python -m pip install --upgrade pip meson ninja
- name: Configure
env:
CXX: clang++-18
CXXFLAGS: -stdlib=libc++
LDFLAGS: -stdlib=libc++
# werror=true is what PRISM's browser build does: emscripten is clang and promotes warnings.
run: meson setup builddir --buildtype=release -Dwerror=true
- name: Build
run: ninja -C builddir
- name: Test
run: meson test -C builddir --print-errorlogs
sanitizers:
name: Clang 18, ASan + UBSan
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Toolchain
run: |
sudo apt-get update
sudo apt-get install -y clang-18 libc++-18-dev libc++abi-18-dev
python -m pip install --upgrade pip meson ninja
- name: Configure
env:
CXX: clang++-18
CXXFLAGS: -stdlib=libc++
LDFLAGS: -stdlib=libc++
# clang 18 with Ubuntu's libstdc++ 13 has no std::expected, so this job uses libc++ like the
# -Werror one: the C++23 headers have to come from somewhere.
run: meson setup builddir --buildtype=debugoptimized -Db_sanitize=address,undefined -Db_lundef=false
- name: Build
run: ninja -C builddir
- name: Test
env:
# Leak detection stays off: the sanitizer job is for engine bugs, and ASan's leak pass walks
# the test fixtures' allocations, which are never all freed.
ASAN_OPTIONS: detect_leaks=0:halt_on_error=1
UBSAN_OPTIONS: halt_on_error=1:print_stacktrace=1
run: meson test -C builddir --print-errorlogs --timeout-multiplier 4
size:
name: arm-none-eabi size
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Toolchain
run: |
sudo apt-get update
sudo apt-get install -y gcc-arm-none-eabi gawk
# The size accounting in size_check.sh uses gawk's strtonum; Ubuntu's default awk is mawk.
sudo update-alternatives --set awk /usr/bin/gawk
python -m pip install --upgrade pip meson
- name: Fetch subprojects
# size_check.sh compiles dragonbox's source itself and needs its include directory.
run: meson subprojects download
- name: Size check
run: ./scripts/size_check.sh