Fix android workflow not installing .NET 8 version

This commit is contained in:
Salman Alshamrani
2024-11-27 23:06:41 -05:00
parent c274d818c1
commit 7a0d565ff2
2 changed files with 8 additions and 2 deletions

View File

@@ -122,7 +122,10 @@ jobs:
dotnet-version: "8.0.x"
- name: Restore .NET workloads
run: dotnet workload install android
# since windows image 20241113.3.0, not specifying a version here
# installs the .NET 7 version of android workload for very unknown reasons.
# revisit once we upgrade to .NET 9, it's probably fixed there.
run: dotnet workload install android --version (dotnet --version)
- name: Compile
run: dotnet build -c Debug osu-framework.Android.slnf

View File

@@ -131,7 +131,10 @@ jobs:
java-version: 11
- name: Restore .NET workloads
run: dotnet workload install android
# since windows image 20241113.3.0, not specifying a version here
# installs the .NET 7 version of android workload for very unknown reasons.
# revisit once we upgrade to .NET 9, it's probably fixed there.
run: dotnet workload install android --version (dotnet --version)
- name: Pack (Android Framework)
run: dotnet pack -c Release osu.Framework.Android /p:Version=${{ github.ref_name }} /p:GenerateDocumentationFile=true -o ${{steps.artifactsPath.outputs.nuget_artifacts}}