-
Notifications
You must be signed in to change notification settings - Fork 2
96 lines (79 loc) · 2.5 KB
/
cmake_tests.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: CMake-Tests
on: push
jobs:
windows:
name: "Windows"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-2019
preset: "msvc"
- os: windows-2022
preset: "msvc"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup CMake & Ninja
uses: lukka/get-cmake@latest
- name: Install Tools Ninja and mvsc
uses: ilammy/msvc-dev-cmd@v1
- name: Build and Test Debug
env:
GTEST_OUTPUT: xml:${{ github.workspace }}\reports\debug\
run: script/test_cmake.bat ${{ matrix.preset }} debug
- name: Build and Test Release
env:
GTEST_OUTPUT: xml:${{ github.workspace }}\reports\release\
run: script/test_cmake.bat ${{ matrix.preset }} release
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: ${{ matrix.os }} Tests
path: reports/**/*.xml
reporter: java-junit
linux:
name: "Linux"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- image: "arbmind/cmake-clang:3.25.1-14"
preset: "clang"
- image: "arbmind/cmake-clang:3.27.6-17"
preset: "clang"
- image: "arbmind/cmake-clang-libstdcpp:3.25.1-15-12"
preset: "clang-libstdcpp"
- image: "arbmind/cmake-gcc:3.25.1-11"
preset: "gcc"
- image: "arbmind/cmake-gcc:3.25.1-12"
preset: "gcc"
- image: "arbmind/cmake-gcc:3.27.6-13"
preset: "gcc"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build and Test Debug
run: >-
docker run --rm -v ${GITHUB_WORKSPACE}:/project -w /project
--env GTEST_OUTPUT=xml:/project/reports/debug/
${{ matrix.image }}
script/test_cmake.sh ${{ matrix.preset }} debug
- name: Build and Test Release
run: >-
docker run --rm -v ${GITHUB_WORKSPACE}:/project -w /project
--env GTEST_OUTPUT=xml:/project/reports/release/
${{ matrix.image }}
script/test_cmake.sh ${{ matrix.preset }} release
- run: >-
ls -la reports/*
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: ${{ matrix.image }} Tests
path: reports/**/*.xml
reporter: java-junit