-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (63 loc) · 1.94 KB
/
build_develop.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
55
56
57
58
59
60
61
62
63
64
65
66
# Github actions script to build the project develop branch
name: Build Develop
on:
push:
branches:
- develop
- release/*
- feature/*
pull_request:
branches:
- develop
jobs:
build_and_test_unixlike:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false # True to stop on the first job failing
matrix:
os:
- ubuntu-latest
- macos-latest
build_type:
- Debug
- Release
- MinSizeRel
compiler:
- gcc
- clang
steps:
- uses: actions/checkout@v2
- name: Check the compiler version
run: |
cmake --version
${{ matrix.compiler }} --version
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_C_COMPILER=${{matrix.compiler}} --preset=${{matrix.compiler}}
- name: Build all targets
run: cmake --build ${{github.workspace}}/build --parallel --clean-first
- name: Self-test
working-directory: ${{github.workspace}}/build
run: ctest --output-on-failure
build_and_test_windows:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false # True to stop on the first job failing
matrix:
os:
- windows-latest
build_type:
- Debug
- Release
- MinSizeRel
steps:
- uses: actions/checkout@v2
- uses: ilammy/msvc-dev-cmd@v1 # Configure the Developer Prompt for MS Visual C++ (MSVC)
with:
arch: amd64
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -G "CodeBlocks - NMake Makefiles" --preset=msvc
- name: Build all targets
run: cmake --build ${{github.workspace}}/build --parallel --clean-first
- name: Self-test
working-directory: ${{github.workspace}}/build
run: ctest --output-on-failure