-
Notifications
You must be signed in to change notification settings - Fork 214
52 lines (42 loc) · 1.24 KB
/
ci.yml
File metadata and controls
52 lines (42 loc) · 1.24 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
name: Makefile Continuous Integrations
on:
push:
branches: [ master ]
paths:
- '!**'
- '**.h'
- '**.cc'
- Makefile
- .github/workflows/ci.yml
pull_request:
branches: [ master ]
paths:
- '!**'
- '**.h'
- '**.cc'
- Makefile
- .github/workflows/ci.yml
jobs:
unit-test:
strategy:
fail-fast: false
matrix:
toolset: [gcc, clang]
os: [ubuntu-22.04, ubuntu-24.04, ubuntu-22.04-arm, ubuntu-24.04-arm]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Install Boost.Test
run: |
sudo apt-get update
sudo apt-get install --yes -qq libboost-test-dev
- name: Environment variables
run: make -r TOOLSET=${{ matrix.toolset }} env
- name: Toolset versions
run: make -r TOOLSET=${{ matrix.toolset }} versions
- name: Build and run unit tests
run: make -rj2 TOOLSET=${{ matrix.toolset }} example run_tests
- name: Build and run unit tests with address sanitizer
run: make -rj2 TOOLSET=${{ matrix.toolset }} BUILD=sanitize2 run_tests
- name: Build and run unit tests with thread sanitizer
run: make -rj2 TOOLSET=${{ matrix.toolset }} BUILD=sanitize run_tests