-
-
Notifications
You must be signed in to change notification settings - Fork 8
62 lines (51 loc) · 1.46 KB
/
sanitizers.yml
File metadata and controls
62 lines (51 loc) · 1.46 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
---
name: Sanitizers
on:
push:
pull_request:
concurrency:
group: >
${{github.workflow }}
-${{ github.event.pull_request.number || github.ref}}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
container: "ubuntu:25.10"
strategy:
matrix:
build_type: [asan, tsan]
steps:
- name: Cache dependencies
uses: actions/cache@v4
with:
key: dependencies-ubuntu:25.10-${{matrix.build_type}}-g++-linux
path: |
~/.cache/ccache
~/.cache/iscool
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: >
./ci/install-minimal-environment.sh
--compiler g++
--target-platform linux
# Older versions of ThreadSanitizer are not compatible with ASLR
# on some recent Linux distributions, thus we reduce the entropy
# until we can upgrade for a newer version. See
# https://github.com/google/sanitizers/issues/1716
- name: ASLR fix
run: >
sysctl vm.mmap_rnd_bits=28
- name: Launch build
run: >
./setup.sh
--target-platform linux
--build-type ${{matrix.build_type}}
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: binaries-${{matrix.build_type}}
path: |
build/linux/*/apps/server/bim-server
build/linux/**/*-tests