From 0f71ac09431df136c040baa1dab773f7405b33dc Mon Sep 17 00:00:00 2001 From: Peter Csajtai Date: Sat, 18 Nov 2023 18:52:49 +0100 Subject: [PATCH] Fix CI scripts --- .github/workflows/codeql-analysis.yml | 5 +++++ .github/workflows/sonar-analysis.yml | 4 ++++ appveyor.yml | 4 +++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 48b53467..d2450894 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -43,6 +43,11 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + + - uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 8.0.x # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/sonar-analysis.yml b/.github/workflows/sonar-analysis.yml index 064d6294..5bd5e90e 100644 --- a/.github/workflows/sonar-analysis.yml +++ b/.github/workflows/sonar-analysis.yml @@ -26,6 +26,10 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + - uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 8.0.x - name: Cache SonarCloud packages uses: actions/cache@v3 with: diff --git a/appveyor.yml b/appveyor.yml index 17744a66..57a4e77e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -20,7 +20,9 @@ install: $env:build_version = Get-Content ".version" Update-AppveyorBuild -Version "$env:build_version-preview-$env:appveyor_build_number" dotnet tool install -g InheritDocTool - winget install Microsoft.DotNet.SDK.8 + + Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1' -OutFile 'dotnet-install.ps1' + ./dotnet-install.ps1 -InstallDir '~/.dotnet' -Version '8.0' -Runtime 'dotnet' dotnet_csproj: patch: true