-
Notifications
You must be signed in to change notification settings - Fork 96
114 lines (114 loc) · 3.36 KB
/
build.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
---
name: build
'on': [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linux-gcc:
name: linux-gcc
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt-get --yes install fluidsynth libfluidsynth-dev sordi gtk+2.0 libgtk2.0-dev libcairo2 lv2-dev
- name: Check out
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure
run: |
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../install
- name: Build
run: cmake --build build
linux-clang-with-lld:
name: linux-clang-with-lld # clang with LLVM's linker LLD
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt-get --yes install fluidsynth libfluidsynth-dev sordi gtk+2.0 libgtk2.0-dev libcairo2 lv2-dev
- name: Check out
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure
run: >
mkdir build && cd build &&
cmake ..
-DCMAKE_INSTALL_PREFIX=../install
-DCMAKE_C_COMPILER=clang
-DCMAKE_CXX_COMPILER=clang++
-DCMAKE_C_FLAGS="-fuse-ld=lld"
-DCMAKE_CXX_FLAGS="-fuse-ld=lld"
- name: Build
run: cmake --build build
macos:
name: macos
runs-on: macos-13
steps:
- name: Install dependencies
run: brew install automake fluid-synth gtk+ cairo lv2
- name: Check out
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure
run: |
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../install
- name: Build
run: cmake --build build
# install does not work yet, but seems less critical for now
mingw-cross:
strategy:
matrix:
compiler:
- {cc: 'i686-w64-mingw32-gcc-win32',
cppc: 'i686-w64-mingw32-g++-win32',
bits: '32'}
- {cc: 'x86_64-w64-mingw32-gcc-win32',
cppc: 'x86_64-w64-mingw32-g++-win32',
bits: '64'}
name: mingw-${{matrix.compiler.bits}}-cross
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: >
sudo apt-get install -y
mingw-w64 fluidsynth libfluidsynth-dev
- name: Check out
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure
run: >
mkdir build && cd build &&
cmake ..
-DCMAKE_INSTALL_PREFIX=../install
-DCMAKE_C_COMPILER=${{matrix.compiler.cc}}
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cppc}}
- name: Build
run: cmake --build build
msvc:
name: msvc
runs-on: windows-latest
steps:
- name: Check out
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache vcpkg dependencies
id: cache-deps
uses: actions/cache@v3
with:
key: vcpkg-x64-${{ hashFiles('vcpkg.json') }}
restore-keys: |
vcpkg-x64-
path: build\vcpkg_installed
- name: Configure
run: >
cmake
-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake .
- name: Build
run: cmake --build .
# install does not work yet, but seems less critical for now