Skip to content

Commit 53aad5d

Browse files
committed
Update CI workflows, cache settings, and NuGet versions
1 parent 7283243 commit 53aad5d

5 files changed

Lines changed: 15 additions & 7 deletions

File tree

.github/workflows/ci-plugin.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Checkout
1818
uses: actions/checkout@v4
1919

20-
- uses: actions/cache@v3
20+
- uses: actions/cache@v4
2121
with:
2222
path: ~/.nuget/packages
2323
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -28,6 +28,8 @@ jobs:
2828
uses: actions/setup-dotnet@v4
2929
with:
3030
dotnet-version: 9.x
31+
cache: true
32+
cache-dependency-path: src/Plugins/**/packages.lock.json
3133

3234
- name: Run the Cake script
3335
uses: cake-build/cake-action@v3

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Checkout
1818
uses: actions/checkout@v4
1919

20-
- uses: actions/cache@v3
20+
- uses: actions/cache@v4
2121
with:
2222
path: ~/.nuget/packages
2323
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -28,6 +28,8 @@ jobs:
2828
uses: actions/setup-dotnet@v4
2929
with:
3030
dotnet-version: 9.x
31+
cache: true
32+
cache-dependency-path: src/**/packages.lock.json
3133

3234
- name: Run the Cake script
3335
uses: cake-build/cake-action@v3

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@
77
.local/
88

99
.idea/
10+
11+
Output/
12+
LocalLib/
13+
Output.zip

build-plugin.cake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#addin "nuget:?package=SharpZipLib&Version=1.3.3"
1+
#addin "nuget:?package=&SharpZipLibVersion=1.4.2"
22
#addin "nuget:?package=Cake.Compression&Version=0.3.0"
3-
#addin "nuget:?package=Cake.FileHelpers&Version=5.0.0"
3+
#addin "nuget:?package=Cake.FileHelpers&Version=7.0.0"
44

55
var workflow = BuildSystem.GitHubActions.Environment.Workflow;
66
var buildId = workflow.RunNumber;

build.cake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#addin "nuget:?package=SharpZipLib&Version=1.3.3"
1+
#addin "nuget:?package=&SharpZipLibVersion=1.4.2"
22
#addin "nuget:?package=Cake.Compression&Version=0.3.0"
3-
#addin "nuget:?package=Cake.FileHelpers&Version=5.0.0"
3+
#addin "nuget:?package=Cake.FileHelpers&Version=7.0.0"
44

55
var workflow = BuildSystem.GitHubActions.Environment.Workflow;
66
var buildId = workflow.RunNumber;
@@ -30,7 +30,7 @@ else if (buildId != 0)
3030
//////////////////////////////////////////////////////////////////////
3131

3232
// Remove unnecessary files for packaging.
33-
private void ImpostorPublish(string runtime) {
33+
void ImpostorPublish(string runtime) {
3434
var name = "Next_Impostor_Server";
3535
var projBuildDir = buildDir.Combine(name + "_" + runtime);
3636
var projBuildName = name + "_" + buildVersion + "_" + runtime;

0 commit comments

Comments
 (0)