Updated to VisualStudio2015 & added anim debug #2
This file contains hidden or 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: CI | |
| on: [push, pull_request] | |
| env: | |
| SDL2_VERSION: 2.30.11 | |
| jobs: | |
| linux: | |
| name: Steam Linux Runtime | |
| runs-on: ubuntu-latest | |
| container: | |
| image: registry.gitlab.steamos.cloud/steamrt/sniper/sdk:latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Generate glimp files | |
| run: ./flibitGLIMP.sh | |
| - name: CMake configure | |
| run: cmake -B release -G Ninja . -DCMAKE_BUILD_TYPE=Release | |
| - name: Build | |
| run: | | |
| ninja -C release | |
| strip -S release/qc | |
| mv release/qc qc.bin.x86_64 | |
| - name: CMake configure (Release 32-bit) | |
| run: CC="cc -m32" CXX="c++ -m32" cmake -B release32 -G Ninja . -DCMAKE_BUILD_TYPE=Release | |
| - name: Build (Release 32-bit) | |
| run: | | |
| ninja -C release32 | |
| strip -S release32/qc | |
| mv release32/qc qc.bin.x86 | |
| - name: Archive build result | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: qc-linux | |
| path: qc.bin.* | |
| linux-steam: | |
| name: Steam Linux Runtime (Steamworks) | |
| runs-on: ubuntu-latest | |
| container: | |
| image: registry.gitlab.steamos.cloud/steamrt/sniper/sdk:latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Download Steamworks SDK | |
| run: | | |
| git clone --depth 1 --branch 1.37 https://github.com/flibitijibibo/steamworks-sdk | |
| mv steamworks-sdk/steam steam | |
| - name: Generate glimp files | |
| run: ./flibitGLIMP.sh | |
| - name: CMake configure | |
| run: cmake -B release -G Ninja . -DCMAKE_BUILD_TYPE=Release -DSTEAM=ON | |
| - name: Build | |
| run: | | |
| cp steamworks-sdk/redistributable_bin/linux64/libsteam_api.so steam | |
| ninja -C release | |
| strip -S release/qc | |
| mv release/qc qc.bin.x86_64 | |
| - name: CMake configure (Release 32-bit) | |
| run: CC="cc -m32" CXX="c++ -m32" cmake -B release32 -G Ninja . -DCMAKE_BUILD_TYPE=Release -DSTEAM=ON | |
| - name: Build (Release 32-bit) | |
| run: | | |
| cp steamworks-sdk/redistributable_bin/linux32/libsteam_api.so steam | |
| ninja -C release32 | |
| strip -S release32/qc | |
| mv release32/qc qc.bin.x86 | |
| - name: Archive build result | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: qc-linux-steam | |
| path: qc.bin.* | |
| macos: | |
| name: macOS | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Generate glimp files | |
| run: ./flibitGLIMP.sh | |
| - name: CMake configure | |
| run: cmake -B release -G Ninja . -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0 | |
| - name: Build | |
| run: | | |
| ninja -C release | |
| strip -S release/qc | |
| mv release/qc "Quadrilateral Cowboy" | |
| - name: Archive build result | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: qc-osx | |
| path: "Quadrilateral Cowboy" | |
| macos-steam: | |
| name: macOS (Steamworks) | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Download Steamworks SDK | |
| run: | | |
| git clone --depth 1 --branch 1.37 https://github.com/flibitijibibo/steamworks-sdk | |
| mv steamworks-sdk/steam steam | |
| - name: Generate glimp files | |
| run: ./flibitGLIMP.sh | |
| - name: CMake configure | |
| run: cmake -B release -G Ninja . -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0 -DSTEAM=ON | |
| - name: Build | |
| run: | | |
| cp steamworks-sdk/redistributable_bin/osx32/libsteam_api.dylib steam | |
| ninja -C release | |
| strip -S release/qc | |
| mv release/qc "Quadrilateral Cowboy" | |
| - name: Archive build result | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: qc-osx-steam | |
| path: "Quadrilateral Cowboy" | |
| windows: | |
| name: Win32 | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: CMake configure | |
| run: cmake -B release -G "Visual Studio 17 2022" . -A Win32 -DCMAKE_BUILD_TYPE=Release | |
| - name: Build | |
| run: | | |
| cmake --build release --config Release | |
| - name: Archive build result | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: qc-win32 | |
| path: release/Release/qc.exe | |
| windows-steam: | |
| name: Win32 (Steamworks) | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Download Steamworks SDK | |
| run: | | |
| git clone --depth 1 --branch 1.37 https://github.com/flibitijibibo/steamworks-sdk | |
| move steamworks-sdk/steam steam | |
| - name: CMake configure | |
| run: cmake -B release -G "Visual Studio 17 2022" . -A Win32 -DCMAKE_BUILD_TYPE=Release -DSTEAM=ON | |
| - name: Build | |
| run: | | |
| cp steamworks-sdk/redistributable_bin/steam_api.dll steam/ | |
| cp steamworks-sdk/redistributable_bin/steam_api.lib steam/ | |
| cmake --build release --config Release | |
| - name: Archive build result | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: qc-win32-steam | |
| path: release/Release/qc.exe |