-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (37 loc) · 1021 Bytes
/
cpptest.yml
File metadata and controls
47 lines (37 loc) · 1021 Bytes
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
name: C/C++ CI
on:
push:
branches: [ test ]
pull_request:
branches: [ master, dev, test ]
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: configure
run: mkdir build && cd build && cmake -DCMAKE_CXX_FLAGS="-Werror" .. -D test=true
- name: build
run: cd build && make
- name: test
run: cd build && ./test
build-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: configure
run: mkdir build && cd build && cmake -DCMAKE_CXX_FLAGS="-Werror" .. -D test=true
- name: build
run: cd build && make
- name: test
run: cd build && ./test -s
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: configure
run: mkdir build && cd build && cmake .. -G "MinGW Makefiles" -D test=true -DCMAKE_SH="CMAKE_SH-NOTFOUND"
- name: build
run: cd build && mingw32-make
- name: test
run: cd build & test.exe -s