-
Notifications
You must be signed in to change notification settings - Fork 38
48 lines (45 loc) · 1.09 KB
/
autotest.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
name: Auto Test
on:
push:
branches: master
pull_request:
branches: master
# test gcc, clang, msvc and mingw
jobs:
ubuntu_gcc_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- run: 'CC=gcc CXX=g++ bash build.sh'
ubuntu_clang_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- run: 'CC=clang CXX=clang++ bash build.sh'
macos_clang_test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- run: 'CC=clang CXX=clang++ bash build.sh'
vs2022_test:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- run: '.\build.bat'
mingw_test:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- run: cmake . -B build -G "MinGW Makefiles"
- run: cmake --build build
- run: 'cd build && ctest --output-on-failure'