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 b400b99
Showing 1 changed file with 88 additions and 0 deletions.
88 changes: 88 additions & 0 deletions .github/workflows/windows-msys2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
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
install: >-
git
pacboy: >-
asio:p
autotools:p
fftw:p
fmt: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
# 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-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 b400b99

Please sign in to comment.