-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (74 loc) · 2.75 KB
/
Copy pathcompile_and_test.yml
File metadata and controls
82 lines (74 loc) · 2.75 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: C++ CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
BUILD_TYPE: Debug
INSTALL_LOCATION: ".local"
jobs:
gcc:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Install google test and boost, also install g++-11
run: sudo apt-get install libgtest-dev googletest google-mock g++-11
- name: Checkout repository
with:
submodules: recursive
uses: actions/checkout@v3
- name: Print env
run: |
echo github.event.action: ${{ github.event.action }}
echo github.event_name: ${{ github.event_name }}
- name: CMake Lib debug config C++17
run: cmake -S . -B debug -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_BUILD_TYPE=Debug
- name: CMake Lib debug build C++17
run: cmake --build debug
- name: Run tests C++17
run: debug/zip_in_cpp_tests
- name: CMake Lib debug config C++20
run: cmake -S . -B debug -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_BUILD_TYPE=Debug
- name: CMake Lib debug build C++20
run: cmake --build debug
- name: Run tests C++20
run: debug/zip_in_cpp_tests
- name: CMake Lib release config
run: cmake -S . -B release -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_BUILD_TYPE=Release
- name: CMake Lib release build
run: cmake --build release
clang:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Install google test and boost, also install clang-15
run: sudo apt-get install libgtest-dev googletest google-mock clang-15
- name: Checkout repository
with:
submodules: recursive
uses: actions/checkout@v3
- name: Print env
run: |
echo github.event.action: ${{ github.event.action }}
echo github.event_name: ${{ github.event_name }}
- name: CMake Lib debug config C++17
run: cmake -S . -B debug -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_BUILD_TYPE=Debug
- name: CMake Lib debug build C++17
run: cmake --build debug
- name: Run tests C++17
run: debug/zip_in_cpp_tests
- name: CMake Lib debug config C++20
run: cmake -S . -B debug -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_BUILD_TYPE=Debug
- name: CMake Lib debug build C++20
run: cmake --build debug
- name: Run tests C++20
run: debug/zip_in_cpp_tests
- name: CMake Lib release config
run: cmake -S . -B release -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_BUILD_TYPE=Release
- name: CMake Lib release build
run: cmake --build release