Skip to content

Commit 34a784f

Browse files
committed
Update CI workflows, add global.json, and update Cake scripts
1 parent b769579 commit 34a784f

File tree

5 files changed

+18
-3
lines changed

5 files changed

+18
-3
lines changed

.github/workflows/ci-plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
cache-dependency-path: src/Plugins/**/packages.lock.json
3333

3434
- name: Run the Cake script
35-
uses: cake-build/cake-action@v3
35+
uses: cake-build/cake-action@v1
3636
with:
3737
verbosity: Diagnostic
3838
script-path: ./build-plugin.cake

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
- name: Setup .NET
2828
uses: actions/setup-dotnet@v4
2929
with:
30-
dotnet-version: 9.x
30+
global-json-file: "./src/global.json"
3131
cache: true
3232
cache-dependency-path: src/**/packages.lock.json
3333

3434
- name: Run the Cake script
35-
uses: cake-build/cake-action@v3
35+
uses: cake-build/cake-action@v1
3636
with:
3737
verbosity: Diagnostic
3838
script-path: ./build.cake

build-plugin.cake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#addin "nuget:?package=SharpZipLib&Version=1.3.3"
2+
#addin "nuget:?package=Cake.Compression&Version=0.3.0"
3+
#addin "nuget:?package=Cake.FileHelpers&Version=5.0.0"
4+
15
var workflow = BuildSystem.GitHubActions.Environment.Workflow;
26
var buildId = workflow.RunNumber;
37
var tag = workflow.RefType == GitHubActionsRefType.Tag ? workflow.RefName : null;

build.cake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#addin "nuget:?package=SharpZipLib&Version=1.3.3"
2+
#addin "nuget:?package=Cake.Compression&Version=0.3.0"
3+
#addin "nuget:?package=Cake.FileHelpers&Version=5.0.0"
4+
15
var workflow = BuildSystem.GitHubActions.Environment.Workflow;
26
var buildId = workflow.RunNumber;
37
var tag = workflow.RefType == GitHubActionsRefType.Tag ? workflow.RefName : null;

src/global.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"sdk": {
3+
"version": "9.0.0",
4+
"rollForward": "latestMajor",
5+
"allowPrerelease": true
6+
}
7+
}

0 commit comments

Comments
 (0)