Ensure local dotnet tools are restored on Linux and for CI
Windows users can do it manually if VS doesn't, at least until #3013
This commit is contained in:
parent
5c31711710
commit
8f7e613398
|
@ -43,7 +43,7 @@ jobs:
|
|||
dotnet-version: "8"
|
||||
|
||||
- name: Test
|
||||
run: dotnet test BizHawk.sln -c Release -p:ContinuousIntegrationBuild=true
|
||||
run: dotnet tool restore && dotnet test BizHawk.sln -c Release -p:ContinuousIntegrationBuild=true
|
||||
shell: pwsh
|
||||
|
||||
package:
|
||||
|
|
|
@ -12,4 +12,5 @@ if [ -z "$NUGET_PACKAGES" ]; then export NUGET_PACKAGES="$HOME/.nuget/packages";
|
|||
printf "running 'dotnet %s' in %s configuration, extra args: %s\n" "$cmd" "$config" "$*"
|
||||
version=$(grep -Po "MainVersion = \"\K(.*)(?=\")" src/BizHawk.Common/VersionInfo.cs)
|
||||
git_hash="$(git rev-parse --verify HEAD 2>/dev/null || printf "0000000000000000000000000000000000000000")"
|
||||
dotnet tool restore >/dev/null || (echo "dotnet tool restore failed"; exit 1)
|
||||
dotnet "$cmd" BizHawk.sln -c "$config" -m -clp:NoSummary -p:Version="$version" -p:SourceRevisionId="$git_hash" "$@"
|
||||
|
|
Loading…
Reference in New Issue