From 3d81935ce7f99039edd4772778dcab930acefe91 Mon Sep 17 00:00:00 2001 From: Nikola Irinchev Date: Thu, 23 Nov 2023 13:20:02 +0100 Subject: [PATCH] Setup workloads everywhere --- .github/templates/codeql.yml | 2 +- .github/templates/test-source-generation.yml | 2 +- .github/workflows/codeql.yml | 2 +- .github/workflows/test-source-generation.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/templates/codeql.yml b/.github/templates/codeql.yml index 0c5d12d7b9..b8dfa787c7 100644 --- a/.github/templates/codeql.yml +++ b/.github/templates/codeql.yml @@ -21,7 +21,7 @@ #@ def buildPackages(): - #@ template.replace(setupAndroid()) - - #@ setupWorkloads('tvos ios maccatalyst android') + - #@ setupWorkloads('tvos ios maccatalyst android wasm-tools-net6') - name: Add msbuild to PATH uses: #@ actionSetupMSBuild #@ for pkgName in nugetPackages: diff --git a/.github/templates/test-source-generation.yml b/.github/templates/test-source-generation.yml index 5938e8536f..9259c70175 100644 --- a/.github/templates/test-source-generation.yml +++ b/.github/templates/test-source-generation.yml @@ -13,7 +13,7 @@ jobs: timeout-minutes: 45 steps: - #@ template.replace(checkoutCode()) - - #@ setupWorkloads('tvos ios maccatalyst android') + - #@ setupWorkloads('tvos ios maccatalyst android wasm-tools-net6') - #@ template.replace(dotnetPublish("Tests/SourceGenerators/Realm.SourceGenerator.Tests", "net6.0", "win-x64")) - name: Run the tests run: #@ "${{ steps.dotnet-publish.outputs.executable-path }}/Realm.SourceGenerator.Tests --result=TestResults.SourceGeneration.xml" diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 8ba5266586..bbe4791844 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -46,7 +46,7 @@ jobs: - name: Install SDK platform 21 run: sdkmanager --install "platforms;android-21" - name: Setup workloads - run: dotnet workload install tvos ios maccatalyst android + run: dotnet workload install tvos ios maccatalyst android wasm-tools-net6 - name: Add msbuild to PATH uses: microsoft/setup-msbuild@0b44c6745b7e81956596964100aadb92d667c497 - name: Build Realm.PlatformHelpers diff --git a/.github/workflows/test-source-generation.yml b/.github/workflows/test-source-generation.yml index 32db8b2767..a6a97fc51e 100644 --- a/.github/workflows/test-source-generation.yml +++ b/.github/workflows/test-source-generation.yml @@ -17,7 +17,7 @@ jobs: - name: Register msvc problem matcher run: echo "::add-matcher::.github/problem-matchers/msvc.json" - name: Setup workloads - run: dotnet workload install tvos ios maccatalyst android + run: dotnet workload install tvos ios maccatalyst android wasm-tools-net6 - name: Publish Tests/SourceGenerators/Realm.SourceGenerator.Tests run: dotnet publish Tests/SourceGenerators/Realm.SourceGenerator.Tests -c Release -f net6.0 -r win-x64 --no-self-contained - name: Output executable path