-
Notifications
You must be signed in to change notification settings - Fork 98
75 lines (59 loc) · 2.28 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
75
name: Continuous integration
# Runs on push and pull requests, any branch, Linux only (for now).
on: [push, pull_request]
jobs:
# Linux ----------------------------------------------------------------------
linux:
name: Linux CI
runs-on: ubuntu-20.04
timeout-minutes: 60
steps:
- name: Download repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install dependencies
run: bash ./.github/scripts/linux/install-deps.sh
- name: Generate Makefile
run: cmake -S . -B build/ -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_TESTS=ON -DWITH_VST3=ON
- name: Build
run: cmake --build build/ -j 2
- name: Run tests
run: xvfb-run ./build/giada --run-tests
# Windows --------------------------------------------------------------------
windows:
name: Windows
runs-on: windows-2019
timeout-minutes: 60
steps:
- name: Download repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install dependencies
shell: bash
run: bash ./.github/scripts/windows/install-deps.sh
- name: Generate Makefile
shell: bash
run: cmake -S . -B build/ -G "Visual Studio 16 2019" -DCMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake -DWITH_TESTS=ON -DWITH_VST3=ON
- name: Build
shell: bash
run: cmake --build build/ --config Debug -j 2
- name: Run tests
run: ./build/Debug/giada.exe --run-tests
# macOS ----------------------------------------------------------------------
macos:
name: macOS
runs-on: macos-11
timeout-minutes: 60
steps:
- name: Download repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Generate Makefile
run: cmake -S . -B build/ -G "Xcode" -DCMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake -DCMAKE_CXX_FLAGS="-x objective-c++" -DWITH_TESTS=ON -DWITH_VST3=ON
- name: Build
run: cmake --build build/ --config Debug -j 2
- name: Run tests
run: ./build/Debug/giada --run-tests