Version 1.1.0 #213
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: Windows (MSVS) Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
arch: ["Win32", "x64"] | |
include: | |
- arch: "Win32" | |
package: "system3-sdl2-32bit" | |
- arch: "x64" | |
package: "system3-sdl2-64bit" | |
name: MSVS ${{ matrix.arch }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Build | |
run: | | |
mkdir out | |
cd out | |
cmake -G "Visual Studio 17 2022" -A ${{ matrix.arch }} -DCMAKE_COMPILE_WARNING_AS_ERROR=YES ../ | |
cmake --build . --config Release | |
cmake --install . --prefix artifacts | |
cp ../COPYING.txt artifacts/ | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.package }} | |
path: out/artifacts | |
compression-level: 9 # because we use it for releases |