Skip to content

[StaticTerrain] The slope map includes the slope direction #35

[StaticTerrain] The slope map includes the slope direction

[StaticTerrain] The slope map includes the slope direction #35

Workflow file for this run

name: Midgard - Windows
on: [push, pull_request]
jobs:
windows:
name: Windows (${{ matrix.compiler.c }}, ${{ matrix.build_type }})
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
compiler:
- { c: cl, cpp: cl }
build_type:
- Debug
- Release
steps:
- uses: actions/checkout@v3
- name: Pulling RaZ
run: git submodule update --init --recursive
# Installing OpenAL-soft to handle the audio part
- name: Build setup
run: |
curl --silent --insecure https://www.openal-soft.org/openal-binaries/openal-soft-1.21.0-bin.zip -O &&
7z x openal-soft-1.21.0-bin.zip &&
mv openal-soft-1.21.0-bin C:/OpenAL;
cmake -E make_directory ${{ runner.workspace }}/build-${{ matrix.compiler.c }}
- name: Configuration
shell: bash
working-directory: ${{ runner.workspace }}/build-${{ matrix.compiler.c }}
run: |
cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DMIDGARD_BUILD_RAZ=ON $GITHUB_WORKSPACE
- name: Build
shell: bash
working-directory: ${{ runner.workspace }}/build-${{ matrix.compiler.c }}
run: |
cmake --build . --config ${{ matrix.build_type }} &&
pwd && find .
# The include/ & lib/ folders are removed after installation; these are RaZ's install results
# A workaround must be found to tell CMake not to install them from Midgard
- name: Install
working-directory: ${{ runner.workspace }}/build-${{ matrix.compiler.c }}
run: |
cmake --install . --prefix C:/Midgard --config ${{ matrix.build_type }} &&
rm C:/Midgard/include -r &&
rm C:/Midgard/lib -r
- name: Upload build
uses: actions/upload-artifact@v3
with:
name: Midgard-windows-${{ matrix.compiler.c }}-${{ matrix.build_type }}-${{ github.run_id }}
path: |
C:/Midgard