name: build on: pull_request: branches: [master, nightly] types: [opened, synchronize, reopened] push: branches: [master, nightly] workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: build_win: name: Windows runs-on: windows-2019 steps: - name: Checkout uses: actions/checkout@v4 with: submodules: recursive - name: Setup Dependencies Windows uses: msys2/setup-msys2@v2 with: update: true install: >- base-devel diffutils git make mingw-w64-x86_64-binutils mingw-w64-x86_64-boost mingw-w64-x86_64-cmake mingw-w64-x86_64-curl mingw-w64-x86_64-onevpl mingw-w64-x86_64-nsis mingw-w64-x86_64-openssl mingw-w64-x86_64-opus mingw-w64-x86_64-toolchain nasm wget yasm - name: Build Windows shell: msys2 {0} run: | mkdir build cd build cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DSUNSHINE_ASSETS_DIR=assets \ -G "MinGW Makefiles" \ .. mingw32-make