Fix: Move roll of index to before shuffle in DRLGMAZE_RollAct_1_2_3_BasicPresets #831
Workflow file for this run
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: CI | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
buildtype: [Debug, RelWithDebInfo] | |
version: ['1.00', '1.10f', '1.14d'] | |
exclude: # Build release only for unmaintained versions. | |
- buildtype: Debug | |
version: '1.14d' | |
- buildtype: Debug | |
version: '1.00' | |
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}} -DD2MOO_ORDINALS_VERSION="${{matrix.version}}" | |
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}} --extra-verbose | |
- 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}}\' |