From 94131defa7bed4ec656435acad9aca76692e6133 Mon Sep 17 00:00:00 2001 From: ncave <777696+ncave@users.noreply.github.com> Date: Sat, 16 Nov 2024 00:57:21 -0800 Subject: [PATCH] Updated analyzers build --- .github/workflows/build.yml | 52 +++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 043c88bb1e..241b1178e8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -222,37 +222,39 @@ jobs: # Separate job to run F# analyzers analyzers: - runs-on: windows-latest + runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 + steps: + - uses: actions/checkout@v2 - - name: Setup .NET - uses: actions/setup-dotnet@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '8.0.x' - - name: Restore tools - run: dotnet tool restore + - name: Restore tools + run: dotnet tool restore - - name: Build solution - run: dotnet build -c Release Fable.sln + - name: Build solution + run: dotnet build -c Release Fable.sln - - name: Run analyzers for Fable.AST - run: dotnet msbuild /t:AnalyzeFSharpProject src/Fable.AST/Fable.AST.fsproj - continue-on-error: true + - name: Run analyzers for Fable.AST + run: dotnet msbuild /t:AnalyzeFSharpProject src/Fable.AST/Fable.AST.fsproj + continue-on-error: true - - name: Run analyzers for Rust.AST - run: dotnet msbuild /t:AnalyzeFSharpProject src/Fable.Transforms/Rust/AST/Rust.AST.fsproj - continue-on-error: true + - name: Run analyzers for Rust.AST + run: dotnet msbuild /t:AnalyzeFSharpProject src/Fable.Transforms/Rust/AST/Rust.AST.fsproj + continue-on-error: true - - name: Run analyzers Fable.Transforms - run: dotnet msbuild /t:AnalyzeFSharpProject src/Fable.Transforms/Fable.Transforms.fsproj - continue-on-error: true + - name: Run analyzers Fable.Transforms + run: dotnet msbuild /t:AnalyzeFSharpProject src/Fable.Transforms/Fable.Transforms.fsproj + continue-on-error: true - - name: Run analyzers Fable.Compiler - run: dotnet msbuild /t:AnalyzeFSharpProject src/Fable.Compiler/Fable.Compiler.fsproj - continue-on-error: true + - name: Run analyzers Fable.Compiler + run: dotnet msbuild /t:AnalyzeFSharpProject src/Fable.Compiler/Fable.Compiler.fsproj + continue-on-error: true - - name: Upload SARIF files - uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: src/reports + - name: Upload SARIF files + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: src/reports