Skip to content

Fix build by fixing GAME_VerifyJoinGme signature #726

Fix build by fixing GAME_VerifyJoinGme signature

Fix build by fixing GAME_VerifyJoinGme signature #726

Workflow file for this run

name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
buildtype: [Debug, RelWithDebInfo]
env:
BUILD_TYPE: ${{ matrix.buildtype }}
CMAKE_PRESET: ${{ matrix.buildtype == 'Debug' && 'clang-tidy' || 'ninja' }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
# Find the clang-tidy bundled with MSVC
- name: Add clang-tidy to PATH
if: env.BUILD_TYPE == 'Debug'
uses: Lectem/[email protected]
with: {file: 'VC\Tools\Llvm\bin\clang-tidy.exe'}
# We need to start cmake from vcvarsall env so that Ninja will pick MSVC
- uses: ilammy/msvc-dev-cmd@v1
with: {arch: x86}
- name: CMake configure and build
run: |
cmake --preset ${{env.CMAKE_PRESET}}
cmake --build --preset ${{env.CMAKE_PRESET}} --config ${{env.BUILD_TYPE}}
env: # We need to enforce VC++ here as clang is picked otherwise due to clang-tidy being in the path
CXX: CL
CC: CL
- name: Test
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest --preset ${{env.CMAKE_PRESET}} -C ${{env.BUILD_TYPE}}
- name: Install
if: env.BUILD_TYPE == 'RelWithDebInfo'
run: cmake --build --preset ${{env.CMAKE_PRESET}} --config ${{env.BUILD_TYPE}} --target install
- name: Artifact
if: env.BUILD_TYPE == 'RelWithDebInfo'
uses: actions/upload-artifact@v3
with:
path: '${{github.workspace}}\out\install\${{env.CMAKE_PRESET}}\'