-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (53 loc) · 1.31 KB
/
ci.yml
File metadata and controls
56 lines (53 loc) · 1.31 KB
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
name: C/C++ CI
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
# Linux Job
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@v4
with:
fetch-depth: 0
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake autoconf-archive ${{ matrix.deps }}
- name: Build with CMake (Linux)
run: |
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DRTMIDI_API_JACK=OFF -DRTMIDI_API_ALSA=OFF -DRTMIDI_API_${{ matrix.APIcmake }}=ON
cmake --build . --config Release
# macOS Job
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies (macOS)
run: |
brew install cmake autoconf-archive automake
- name: Build with CMake (macOS)
run: |
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release