-
Notifications
You must be signed in to change notification settings - Fork 375
58 lines (47 loc) · 1.53 KB
/
build_and_test.yaml
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
name: Build and Test
on:
push:
branches: '**'
pull_request:
branches: '**'
jobs:
build_and_test:
runs-on: ubuntu-22.04
strategy:
matrix:
sanitizer: ["address", "leak", "thread", "undefined"]
compiler: ["clang-14", "gcc-12"]
steps:
- name: Checkout code including full history and submodules
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Install dependencies from APT repository
run: |
sudo apt-get update
sudo apt-get install cmake libcunit1-dev ninja-build unzip wget
- name: Build all binaries
run: |
tools/ci/run_ci.sh --run-build --sanitizer ${{ matrix.sanitizer }} --verbose
env:
CC: ${{ matrix.compiler }}
- name: Build, execute sanitized unit tests
run: |
tools/ci/run_ci.sh --run-tests
env:
CC: ${{ matrix.compiler }}
- name: Install example binaries
run: |
rm -rf integration-tests/
cmake --install build-presets/server/ --prefix integration_tests/install
cmake --install build-presets/bootstrap_server/ --prefix integration_tests/install
cmake --install build-presets/client/ --prefix integration_tests/install
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/integration/requirements.txt
- name: Execute integration tests
run: |
python -c "import sys; print(sys.version)"
pytest -v tests/integration