some general stuff from zombiesRequest that shouldve been seperated #61
Workflow file for this run
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: "Build project" | |
description: "Test if the project builds, if not then fail the build" | |
on: [pull_request, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: windows-2025 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup NuGet | |
uses: NuGet/[email protected] | |
- name: setup-msbuild | |
uses: microsoft/[email protected] | |
- name: Restore Packages | |
run: nuget restore SillySCP.sln | |
- name: Make EXILED_REFERENCES Directory | |
run: mkdir EXILED_REFERENCES | |
- name: Set Environment Variable | |
run: echo "EXILED_REFERENCES=${{ github.workspace }}\\EXILED_REFERENCES" >> $Env:GITHUB_ENV | |
shell: pwsh | |
- name: Download References | |
run: curl -O https://exmod-team.github.io/SL-References/Dev.zip | |
shell: pwsh | |
- name: Extract References | |
run: Expand-Archive -Path Dev.zip -DestinationPath $Env:EXILED_REFERENCES | |
shell: pwsh | |
- name: Build solution | |
run: msbuild SillySCP.sln -t:rebuild -property:Configuration=Debug |