-
Notifications
You must be signed in to change notification settings - Fork 26
43 lines (41 loc) · 1.15 KB
/
actions.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
name: Build and run tests
on: [push, pull_request]
jobs:
cmake:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-22.04', 'macos-12', 'ubuntu-20.04']
cc: [ 'gcc', 'clang' ]
name: Compile via CMakeLists.txt on ${{ matrix.os }} using ${{ matrix.cc }}
env:
CFLAGS: '-Wextra -Werror'
CXXFLAGS: '-Wextra -Werror'
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cc }}
steps:
- uses: actions/checkout@v2
- run: cmake .
- run: make
- run: make test CTEST_OUTPUT_ON_FAILURE=TRUE
make:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-22.04', 'macos-12', 'ubuntu-20.04']
name: Compile via Makefile on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- run: make -C src all VERBOSE=1
msbuild:
runs-on: windows-2019
name: Compile via msbuild on Windows
steps:
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- uses: actions/checkout@v2
- name: Build Binary
shell: cmd
working-directory: .\src\VS2010
run: call .\build.cmd
- run: python test\testrunner.py -v