chore: Modify environment variable to build package (#9) #8
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: | |
paths-ignore: | |
- '**.md' | |
concurrency: | |
group: check-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.405 | |
- name: Restore project dependencies | |
run: dotnet restore | |
- name: Setup Netcode Patcher | |
id: setup-netcode-patcher | |
uses: Lordfirespeed/setup-netcode-patcher@v0 | |
with: | |
netcode-patcher-version: 2.4.0 | |
# https://www.nuget.org/packages/LethalCompany.GameLibs.Steam | |
# Must be the same version as the one used in the project | |
deps-packages: '[{"id": "UnityEngine.Modules", "version": "2022.3.9"}, {"id": "LethalCompany.GameLibs.Steam", "version": "49.0.0-alpha.1"}]' | |
target-framework: "netstandard2.1" | |
- name: Install Thunderstore client | |
# https://github.com/thunderstore-io/thunderstore-cli | |
run: dotnet tool install -g tcli | |
- name: Build | |
run: dotnet build | |
- name: Test | |
run: dotnet test |