-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.12 KB
/
linux.yml
File metadata and controls
52 lines (46 loc) · 1.12 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
---
name: Linux
on: [push, pull_request]
env:
CTEST_OUTPUT_ON_FAILURE: 1
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Ubuntu GCC",
artifact: "Linux.7z",
os: ubuntu-latest,
cc: "gcc",
cxx: "g++-10"
}
- {
name: "Ubuntu Clang",
artefact: "Linux.7z",
os: ubuntu-latest,
cc: "clang",
cxx: "clang++-12"
}
steps:
- uses: actions/checkout@v1
- name: Configure
shell: cmake -P {0}
run: |
set(ENV{CC} ${{ matrix.config.cc }})
set(ENV{CXX} ${{ matrix.config.cxx }})
execute_process(
COMMAND cmake
-S .
-B build
-D CMAKE_BUILD_TYPE=Debug
RESULT_VARIABLE result
)
if (NOT result EQUAL 0)
message(FATAL_ERROR "Bad exit status")
endif()
- name: build
run: cmake --build build