-
-
Notifications
You must be signed in to change notification settings - Fork 12
80 lines (65 loc) · 2.13 KB
/
build_vs2022.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
name: VS2022 build
on: push
jobs:
build:
name: VS2022
runs-on: windows-2022
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Checkout dependencies
uses: actions/checkout@v2
with:
repository: ossia/score
submodules: "recursive"
path: score
- name: Install dependencies
shell: bash
run: |
${{ matrix.config.dependencies }}
- name: Download SDK
shell: bash
run: |
curl -L https://raw.githubusercontent.com/ossia/score/master/tools/fetch-sdk.sh > fetch-sdk.sh
chmod +x ./fetch-sdk.sh
./fetch-sdk.sh
- name: Build debug
shell: bash
run: |
mkdir build-debug
cd build-debug
export SDK_3RDPARTY=$PWD/../score/3rdparty
export VERBOSE=1
cmake .. \
-DBOOST_ROOT=/c/ossia-sdk/boost \
-Dpybind11_DIR=$SDK_3RDPARTY/libossia/3rdparty/pybind11 \
-DAVND_MAXSDK_PATH=$SDK_3RDPARTY/libossia/3rdparty/max-sdk \
-DVST3_SDK_ROOT=$SDK_3RDPARTY/vst3 \
-DCMAKE_PREFIX_PATH="$SDK_3RDPARTY/libpd/pure-data/src" \
-G "Visual Studio 17 2022"
cmake --build . --config Debug
- name: Test debug
shell: bash
run: |
cd build-debug
cmake --build . --target RUN_TESTS
- name: Build release
shell: bash
run: |
mkdir build-release
cd build-release
export SDK_3RDPARTY=$PWD/../score/3rdparty
export VERBOSE=1
cmake .. \
-DBOOST_ROOT=/c/ossia-sdk/boost \
-Dpybind11_DIR=$SDK_3RDPARTY/libossia/3rdparty/pybind11 \
-DAVND_MAXSDK_PATH=$SDK_3RDPARTY/libossia/3rdparty/max-sdk \
-DVST3_SDK_ROOT=$SDK_3RDPARTY/vst3 \
-DCMAKE_PREFIX_PATH="$SDK_3RDPARTY/libpd/pure-data/src" \
-G "Visual Studio 17 2022"
cmake --build . --config Release
- name: Test release
shell: bash
run: |
cd build-release
cmake --build . --config Release --target RUN_TESTS