Merge pull request #359 from Monitor221hz/skeleton-killmove-fix #247
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: build | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
env: | |
build-mode: Debug # Release | Debug | |
# Explicit cache location to cache only nuget dependencies for this project. | |
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
dotnet-version: ["8.0.x"] | |
steps: | |
# Ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net#building-and-testing-your-code | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
- name: .NET Cache | |
# If there is a cache here, it is restored, otherwise it is cached at the end. | |
uses: actions/cache@v4 | |
with: | |
# - Specify the same as `NUGET_PACKAGES` | |
path: | | |
${{ github.workspace }}/.nuget/packages | |
${{ github.workspace }}/Pandora Behaviour Engine/bin | |
${{ github.workspace }}/Pandora Behaviour Engine/obj | |
${{ github.workspace }}/HKX2-Enhanced-Library/HKX2/bin | |
${{ github.workspace }}/HKX2-Enhanced-Library/HKX2/obj | |
${{ github.workspace }}/XML.Cake.NET/XML Cake/bin | |
${{ github.workspace }}/XML.Cake.NET/XML Cake/obj | |
key: nuget-${{ runner.os }}-${{ matrix.dotnet-version }} | |
restore-keys: | | |
nuget-${{ runner.os }}- | |
- name: Build | |
run: dotnet build "./Pandora+.sln" --configuration ${{ env.build-mode }} | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Pandora.Behaviour.Engine | |
path: | | |
./Pandora Behaviour Engine/bin/${{ env.build-mode }}/net8.0 |