-
Notifications
You must be signed in to change notification settings - Fork 8
68 lines (66 loc) · 1.83 KB
/
cxx.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
name: C++
on:
pull_request:
push:
branches:
- master
jobs:
test_cxx_gcc:
if: '!cancelled()'
name: gcc, ${{ matrix.buildtype }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
buildtype: [ Debug, Release ]
env:
BUILD_TYPE: ${{ matrix.buildtype }}
steps:
- uses: actions/checkout@v4
- name: Build
run: |
cmake -B build -DRE_UNPP_BUILD_TESTS=1 -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
cmake --build build --config ${{ env.BUILD_TYPE }} --parallel
- name: Test
run: ./build/re-unplayplay-tests
test_cxx_clang:
if: '!cancelled()'
name: clang, ${{ matrix.buildtype }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
buildtype: [ Debug, Release ]
env:
BUILD_TYPE: ${{ matrix.buildtype }}
steps:
- uses: actions/checkout@v4
- name: Set up clang
uses: egor-tensin/setup-clang@v1
with:
version: 12
platform: x64
- name: Build
run: |
cmake -B build -DRE_UNPP_BUILD_TESTS=1 -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
cmake --build build --config ${{ env.BUILD_TYPE }} --parallel
- name: Test
run: ./build/re-unplayplay-tests
test_cxx_msvc:
if: '!cancelled()'
name: msvc, ${{ matrix.buildtype }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
buildtype: [ Debug, Release ]
env:
BUILD_TYPE: ${{ matrix.buildtype }}
steps:
- uses: actions/checkout@v4
- name: Build
run: |
cmake -B build -DRE_UNPP_BUILD_TESTS=1 -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
cmake --build build --config ${{ env.BUILD_TYPE }} --parallel
- name: Test
run: .\build\${{ env.BUILD_TYPE }}\re-unplayplay-tests.exe