-
Notifications
You must be signed in to change notification settings - Fork 16
47 lines (44 loc) · 1.34 KB
/
ccpp.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
name: Build CI
on: [push]
jobs:
build:
name: ${{ matrix.config.name}}
runs-on: ${{matrix.config.os}}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Windows MSVC",
os: windows-latest,
deps: "",
config: "cmake .",
build: "cmake --build .",
test: "ctest --output-on-failure --verbose"
}
- {
name: "Ubuntu gcc",
os: ubuntu-latest,
deps: "sudo apt-get install liblo-dev",
config: "mkdir build && cd build && cmake ..",
build: "cd build && make",
test: "cd build && ctest --output-on-failure"
}
- {
name: "macOS clang",
os: macos-latest,
deps: "",
config: "mkdir build && cd build && cmake ..",
build: "cd build && make",
test: "cd build && ctest --output-on-failure"
}
steps:
- uses: actions/checkout@v1
- name: install_deps
run: ${{matrix.config.deps}}
- name: configure
run: ${{matrix.config.config}}
- name: make
run: ${{matrix.config.build}}
- name: make test
run: ${{matrix.config.test}}