-
Notifications
You must be signed in to change notification settings - Fork 16
96 lines (96 loc) · 3.27 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
name: Build CI
on: [push] # yamllint disable-line rule:truthy
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Windows MSVC",
enabled: 1,
os: windows-latest,
deps: "vcpkg install liblo",
config: "PKG_CONFIG_PATH=/vcpkg/packages/liblo_x64-windows/debug/lib/pkgconfig cmake -DWERROR=1 .",
build: "cmake --build .",
test: "ctest --output-on-failure"
}
- {
name: "Ubuntu gcc",
enabled: 0,
os: ubuntu-latest,
deps: "sudo apt-get install liblo-dev",
config: "mkdir build && cd build && cmake -DWERROR=1 ..",
build: "cd build && make",
test: "cd build && ctest --output-on-failure"
}
- {
name: "Ubuntu clang+lld",
enabled: 0,
os: ubuntu-latest,
deps: "sudo apt-get install liblo-dev",
config: "mkdir build && cd build &&
cmake
-DWERROR=1
-DCMAKE_C_COMPILER=clang
-DCMAKE_CXX_COMPILER=clang++
-DCMAKE_SHARED_LINKER_FLAGS='-fuse-ld=lld'
-DCMAKE_EXE_LINKER_FLAGS='-fuse-ld=lld'
..",
build: "cd build && make",
test: "cd build && ctest --output-on-failure"
}
- {
name: "Ubuntu mingw32",
enabled: 0,
os: ubuntu-latest,
deps: "sudo apt-get install liblo-dev mingw-w64",
config: "mkdir build && cd build &&
cmake
-DWERROR=1
CC=i686-w64-mingw32-gcc-win32
CXX=i686-w64-mingw32-g++-win32
..",
build: "cd build && make",
test: "cd build && ctest --output-on-failure"
}
- {
name: "Ubuntu mingw64",
enabled: 0,
os: ubuntu-latest,
deps: "sudo apt-get install liblo-dev mingw-w64",
config: "mkdir build && cd build &&
cmake
-DWERROR=1
CC=x86_64-w64-mingw32-gcc-win32
CXX=x86_64-w64-mingw32-g++-win32
..",
build: "cd build && make",
test: "cd build && ctest --output-on-failure"
}
- {
name: "macOS clang",
enabled: 1,
os: macos-latest,
deps: "brew install liblo",
config: "mkdir build && cd build && cmake -DWERROR=1 ..",
build: "cd build && make VERBOSE=1",
test: "cd build && ctest --output-on-failure"
}
steps:
- uses: actions/checkout@v1
- name: install_deps
if: ${{ matrix.config.enabled == 1 }}
run: ${{ matrix.config.deps }}
- name: configure
if: ${{ matrix.config.enabled == 1 }}
run: ${{ matrix.config.config }}
- name: make
if: ${{ matrix.config.enabled == 1 }}
run: ${{ matrix.config.build }}
- name: make test
if: ${{ matrix.config.enabled == 1 }}
run: ${{ matrix.config.test }}