Skip to content

Commit

Permalink
CI: build SSR on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Jun 6, 2023
1 parent 6652112 commit e945500
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/windows-msys2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: SSR for Windows, using MSYS2
on: [push, pull_request]
jobs:
build-win:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Install MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
pacboy: >-
asio:p
autotools:p
cmake:p
fftw:p
fmt:p
glew:p
jack2:p
libsndfile:p
libmysofa:p
libxml2:p
mesa:p
qt5-base:p
vrpn:p
yarn:p
- 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
path: ssr
- name: autogen
working-directory: ssr
run: |
./autogen.sh
- name: configure
working-directory: ssr
run: |
CONFIGURE_OPTIONS=(
--enable-browser-gui
--enable-fudi-interface
--enable-gui
--enable-ip-interface
#--enable-polhemus
#--enable-razor
--enable-sofa
#--enable-vrpn
--enable-websocket-interface
--disable-ecasound
--disable-intersense
CPPFLAGS="-I/ucrt64/include -I`pwd`/../websocketpp -D_WEBSOCKETPP_CPP11_THREAD_"
LDFLAGS=-L/ucrt64/lib
LIBS="-lws2_32 -lwsock32 -lglu32 -lopengl32"
)
./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
# TODO: run "make install" (specifying a suitable installation location)
# and then upload all installed files
- name: upload executables
uses: actions/upload-artifact@v3
with:
name: executables
path: ssr/src/ssr-*

0 comments on commit e945500

Please sign in to comment.