-
Notifications
You must be signed in to change notification settings - Fork 56
46 lines (38 loc) · 1.13 KB
/
linux-simple.yml
File metadata and controls
46 lines (38 loc) · 1.13 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
name: Linux builds (basic)
on: [push, pull_request]
jobs:
build:
name: ${{matrix.compiler}}, C++${{matrix.std}}, ${{matrix.build_type}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
compiler:
- g++-13
- clang-18
build_type: [Debug, Release]
std: [11, 14, 17, 20]
steps:
- uses: actions/checkout@v4
- name: Prepare environment
run: |
sudo apt-get update
sudo apt-get install -y ninja-build ${{matrix.other_pkgs}}
- name: Configure CMake
env:
CXX: ${{matrix.cxx}}
run: |
cmake -B build \
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
-DCMAKE_CXX_STANDARD=${{matrix.std}} \
-DCMAKE_CXX_STANDARD_REQUIRED=ON \
-DCMAKE_CXX_EXTENSIONS=OFF \
-DRAPIDFUZZ_BUILD_TESTING=1 \
-DRAPIDFUZZ_ENABLE_LINTERS=1 \
-G Ninja
- name: Build
working-directory: build
run: ninja
- name: Test
working-directory: build
run: ctest -C ${{matrix.build_type}} --rerun-failed --output-on-failure -j `nproc`