Skip to content

Commit 19ec4da

Browse files
committed
(codeql) - manually build
1 parent 26a70b9 commit 19ec4da

File tree

2 files changed

+55
-19
lines changed

2 files changed

+55
-19
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ jobs:
4949
path: run
5050
key: run-${{ runner.os }}-${{ hashFiles('./build/**') }}
5151
-
52-
name: Setup .NET SDK
53-
uses: actions/setup-dotnet@v1.8.2
52+
name: Install .NET SDK 6.0.x
53+
uses: actions/setup-dotnet@v1
5454
with:
5555
dotnet-version: '6.0.x'
5656
include-prerelease: true
@@ -90,8 +90,8 @@ jobs:
9090
path: tools
9191
key: tools-${{ runner.os }}-${{ hashFiles('./build/**') }}
9292
-
93-
name: Setup .NET SDK
94-
uses: actions/setup-dotnet@v1.8.2
93+
name: Install .NET SDK 6.0.x
94+
uses: actions/setup-dotnet@v1
9595
with:
9696
dotnet-version: '6.0.x'
9797
include-prerelease: true
@@ -147,8 +147,8 @@ jobs:
147147
path: tools
148148
key: tools-${{ runner.os }}-${{ hashFiles('./build/**') }}
149149
-
150-
name: Setup .NET SDK
151-
uses: actions/setup-dotnet@v1.8.2
150+
name: Install .NET SDK 6.0.x
151+
uses: actions/setup-dotnet@v1
152152
with:
153153
dotnet-version: '6.0.x'
154154
include-prerelease: true
@@ -194,8 +194,8 @@ jobs:
194194
name: nuget
195195
path: ${{ github.workspace }}/artifacts/packages/nuget
196196
-
197-
name: Setup .NET SDK
198-
uses: actions/setup-dotnet@v1.8.2
197+
name: Install .NET SDK 6.0.x
198+
uses: actions/setup-dotnet@v1
199199
with:
200200
dotnet-version: '6.0.x'
201201
include-prerelease: true
@@ -256,8 +256,8 @@ jobs:
256256
with:
257257
install: true
258258
-
259-
name: Setup .NET SDK
260-
uses: actions/setup-dotnet@v1.8.2
259+
name: Install .NET SDK 6.0.x
260+
uses: actions/setup-dotnet@v1
261261
with:
262262
dotnet-version: '6.0.x'
263263
include-prerelease: true
@@ -316,8 +316,8 @@ jobs:
316316
with:
317317
install: true
318318
-
319-
name: Setup .NET SDK
320-
uses: actions/setup-dotnet@v1.8.2
319+
name: Install .NET SDK 6.0.x
320+
uses: actions/setup-dotnet@v1
321321
with:
322322
dotnet-version: '6.0.x'
323323
include-prerelease: true
@@ -408,8 +408,8 @@ jobs:
408408
name: nuget
409409
path: ${{ github.workspace }}/artifacts/packages/nuget
410410
-
411-
name: Setup .NET SDK
412-
uses: actions/setup-dotnet@v1.8.2
411+
name: Install .NET SDK 6.0.x
412+
uses: actions/setup-dotnet@v1
413413
with:
414414
dotnet-version: '6.0.x'
415415
include-prerelease: true
@@ -464,8 +464,8 @@ jobs:
464464
name: native-macOS
465465
path: ${{ github.workspace }}/artifacts/packages/native
466466
-
467-
name: Setup .NET SDK
468-
uses: actions/setup-dotnet@v1.8.2
467+
name: Install .NET SDK 6.0.x
468+
uses: actions/setup-dotnet@v1
469469
with:
470470
dotnet-version: '6.0.x'
471471
include-prerelease: true

.github/workflows/codeql-analysis.yml

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,52 @@ jobs:
2929
language: [ 'csharp' ]
3030

3131
steps:
32-
- name: Checkout repository
32+
-
33+
name: Checkout repository
3334
uses: actions/[email protected]
35+
-
36+
name: Fetch all history for all tags and branches
37+
run: git fetch --prune --unshallow
3438

3539
- name: Initialize CodeQL
3640
uses: github/codeql-action/init@v1
3741
with:
3842
languages: ${{ matrix.language }}
3943

40-
- name: Autobuild
41-
uses: github/codeql-action/autobuild@v1
44+
-
45+
name: Cache cake frosting
46+
id: cache-cake
47+
uses: actions/[email protected]
48+
with:
49+
path: run
50+
key: run-${{ runner.os }}-${{ hashFiles('./build/**') }}
51+
52+
-
53+
name: Install .NET Core SDK 3.1.x
54+
uses: actions/setup-dotnet@v1
55+
with:
56+
dotnet-version: '3.1.x'
57+
58+
-
59+
name: Install .NET SDK 5.0.x
60+
uses: actions/setup-dotnet@v1
61+
with:
62+
dotnet-version: '5.0.x'
63+
-
64+
name: Install .NET SDK 6.0.x
65+
uses: actions/setup-dotnet@v1
66+
with:
67+
dotnet-version: '6.0.x'
68+
include-prerelease: true
69+
-
70+
name: '[Prepare]'
71+
if: steps.cache-cake.outputs.cache-hit != 'true'
72+
run: dotnet build build/CI.sln --configuration=Release
73+
74+
-
75+
name: '[Build]'
76+
shell: pwsh
77+
run: dotnet run/build.dll --target=Build
4278

4379
- name: Perform CodeQL Analysis
4480
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)