-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (43 loc) · 1.95 KB
/
cpp-linux-build.yml
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
name: Linux CI build
on:
push:
branches: [ "master", "cleanup" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Clang
uses: egor-tensin/setup-clang@v1
with:
version: latest
- name: "prepare build (production/standard), gcc"
run: cmake -S . -B build -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++
- name: "build"
run: cmake --build build --target all --config Release -- -j4 --trace
- name: "Test"
run: ctest --test-dir build
- name: "prepare build (production/standard), clang"
run: cmake -S . -B build -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++
- name: "build"
run: cmake --build build --target all --config Release -- -j4 --trace
- name: "Test"
run: ctest --test-dir build
- name: "prepare build (debug), gcc"
run: cmake -S . -B build -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++
- name: "build"
run: cmake --build build --target all --config Debug -- -j4 --trace
- name: "prepare build (debug), clang"
run: cmake -S . -B build -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++
- name: "build"
run: cmake --build build --target all --config Debug -- -j4 --trace
- name: "prepare build (production/standard), gcc 20"
run: cmake -S . -B build -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_COMPILER=g++
- name: "build"
run: cmake --build build --target all --config Release -- -j4 --trace
- name: "prepare build (production/standard), clang 20"
run: cmake -S . -B build -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_STANDARD=20
- name: "build"
run: cmake --build build --target all --config Release -- -j4 --trace