CI: build SSR on Windows #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |