-
Notifications
You must be signed in to change notification settings - Fork 53
109 lines (109 loc) · 3 KB
/
windows-msys2.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
name: SSR for Windows, using MSYS2
on: [push, pull_request]
jobs:
build-win:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
env:
MSYS: winsymlinks:native
steps:
- name: Install MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
install: >-
git
pacboy: >-
asio:p
autotools:p
cargo-c:p
cmake:p
fftw:p
fmt:p
jack2:p
libsndfile:p
libmysofa:p
libxml2:p
mesa:p
nsis:p
qt5-base:p
qt5-tools:p
rust:p
vrpn:p
yarn:p
- name: checkout asdf-rust
uses: actions/checkout@v3
with:
repository: AudioSceneDescriptionFormat/asdf-rust
ref: '1.0.0'
path: asdf
submodules: true
- name: Install ASDF
working-directory: asdf
run: |
cargo cinstall --verbose --prefix=/ucrt64
- name: checkout websocketpp
uses: actions/checkout@v3
with:
repository: zaphoyd/websocketpp
path: websocketpp
- name: Get SSR source code
uses: actions/checkout@v3
with:
submodules: true
# This is required to be able to fetch tags,
# see https://github.com/actions/checkout/issues/290:
fetch-depth: 0
path: ssr
- name: autogen
working-directory: ssr
run: |
./autogen.sh
- name: fetch Git tags
working-directory: ssr
run: |
# Fetch tags for obtaining the version number,
# see https://github.com/actions/checkout/issues/290:
git fetch --tags --force
- name: configure
working-directory: ssr
run: |
CONFIGURE_OPTIONS=(
--enable-browser-gui
--enable-dynamic-asdf
--enable-fudi-interface
--enable-gui
--enable-ip-interface
#--enable-polhemus
#--enable-razor
--enable-sofa
#--enable-vrpn
--enable-websocket-interface
--enable-windows-installer
--disable-ecasound
--disable-intersense
CPPFLAGS="-I/ucrt64/include -I`pwd`/../websocketpp -D_WEBSOCKETPP_CPP11_THREAD_"
LDFLAGS=-L/ucrt64/lib
)
./configure --disable-dependency-tracking "${CONFIGURE_OPTIONS[@]}"
- name: upload config.log
if: failure()
uses: actions/upload-artifact@v3
with:
name: config.log
path: ssr/config.log
- name: make
working-directory: ssr
run: |
make
- name: make nsis
working-directory: ssr
run: |
make nsis
- name: upload installer
uses: actions/upload-artifact@v3
with:
name: ssr-installer
path: "ssr/windows-installer/SoundScape Renderer * Installer.exe"