-
Notifications
You must be signed in to change notification settings - Fork 2
94 lines (77 loc) · 2.43 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
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-13"
preset: "clang"
- image: "arbmind/cmake-clang:3.25.1-14"
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"
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