Skip to content

Commit 5472d0e

Browse files
committed
Speed up CodeQL by turning off AutoBuild
1 parent 5f85f93 commit 5472d0e

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/codeql.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
language: [ 'csharp' ]
23+
include:
24+
- language: csharp
25+
build-mode: manual
2426
steps:
2527
- name: Setup .NET
2628
uses: actions/setup-dotnet@v4
@@ -34,11 +36,12 @@ jobs:
3436
uses: github/codeql-action/init@v3
3537
with:
3638
languages: ${{ matrix.language }}
37-
- name: Restore .NET tools
38-
run: |
39-
dotnet tool restore
40-
- name: Autobuild
41-
uses: github/codeql-action/autobuild@v3
39+
- name: Restore tools
40+
run: dotnet tool restore
41+
- name: Restore packages
42+
run: dotnet restore
43+
- name: Build
44+
run: dotnet build --no-restore --configuration Release
4245
- name: Perform CodeQL Analysis
4346
uses: github/codeql-action/analyze@v3
4447
with:

0 commit comments

Comments
 (0)