-
Notifications
You must be signed in to change notification settings - Fork 31
31 lines (31 loc) · 1020 Bytes
/
workflow.yml
File metadata and controls
31 lines (31 loc) · 1020 Bytes
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
name: C++ masters course pre-commit and post-push
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
main:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Install google test, boost and proper version of g++
run: sudo apt-get install libgtest-dev googletest google-mock libboost-dev g++-13
- name: Checkout repository
uses: actions/checkout@v3
- name: CMake release config
run: cmake -S . -B build -DCMAKE_CXX_COMPILER=g++-13 -DCMAKE_BUILD_TYPE=Release
- name: CMake release build
run: cmake --build build
- name: CMake release test
run: env CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
- name: CMake debug config
run: cmake -S . -B debug -DCMAKE_CXX_COMPILER=g++-13 -DCMAKE_BUILD_TYPE=Release
- name: CMake debug build
run: cmake --build debug
- name: CMake debug test
run: env CTEST_OUTPUT_ON_FAILURE=1 cmake --build debug --target test