-
Notifications
You must be signed in to change notification settings - Fork 275
74 lines (70 loc) · 2.07 KB
/
ci.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
name: C/C++ CI
on: [push, pull_request]
jobs:
Linux:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- api: jack
APIcmake: JACK
deps: libjack-dev
- api: alsa
APIcmake: ALSA
deps: libasound-dev
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: install dependencies
run:
sudo apt-get update
&& sudo apt-get install g++ autoconf-archive cmake ${{matrix.deps}}
- name: automake
run:
env NOCONFIGURE=1 ./autogen.sh && mkdir bld-automake && cd bld-automake
&& (../configure --with-${{matrix.api}} || (cat config.log; false))
&& make V=1 && make check
- name: CMake
run:
mkdir bld-cmake && cd bld-cmake
&& cmake .. -DRTMIDI_API_JACK=OFF -DRTMIDI_API_ALSA=OFF -DRTMIDI_API_${{matrix.APIcmake}}=ON
&& make VERBOSE=1
MacOS:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: install dependencies
run: brew install autoconf-archive automake cmake meson libtool
- name: automake
run:
env NOCONFIGURE=1 ./autogen.sh && mkdir bld-automake && cd bld-automake
&& (../configure || (cat config.log; false))
&& make V=1 && make check
- name: CMake
run: mkdir bld-cmake && cd bld-cmake && cmake .. && make VERBOSE=1
MinGW:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- host: i686-w64-mingw32
api: winmm
- host: x86_64-w64-mingw32
api: winmm
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: install dependencies
run:
sudo apt-get update
&& sudo apt-get install g++-mingw-w64 autoconf-archive
- name: automake
run:
env NOCONFIGURE=1 ./autogen.sh
&& mkdir bld-automake && cd bld-automake
&& (../configure --host=${{matrix.host}} --with-${{matrix.api}} CPPFLAGS=${{matrix.cppflags}} || (cat config.log; false))
&& make V=1