File tree Expand file tree Collapse file tree 16 files changed +68
-20
lines changed Expand file tree Collapse file tree 16 files changed +68
-20
lines changed Original file line number Diff line number Diff line change @@ -49,13 +49,21 @@ jobs:
49
49
run : git fetch --prune --unshallow
50
50
- uses : actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
51
51
with :
52
+ # codecov needs 2.1
53
+ # unittests needs 3.1
54
+ # gitversion needs 5.0
55
+ # cake 1.3 needs 6.0
56
+ # gitrelasemanager (v0.18.0) needs 7.0
57
+ # .NET 9 to build
58
+ # test are running on 8 and 9
52
59
dotnet-version : |
53
60
2.1
54
61
3.1
55
62
5.0
56
63
6.0
57
64
7.0
58
65
8.0
66
+ 9.0
59
67
- name : Cache Tools
60
68
uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
61
69
with :
Original file line number Diff line number Diff line change @@ -35,11 +35,13 @@ jobs:
35
35
fetch-depth : 0
36
36
- uses : actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
37
37
with :
38
+ # gitversion needs 5.0
39
+ # cake 1.3 needs 6.0
40
+ # .NET 9 to build
38
41
dotnet-version : |
39
42
5.0
40
43
6.0
41
- 7.0
42
- 8.0
44
+ 9.0
43
45
- name : Cache Tools
44
46
uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
45
47
with :
Original file line number Diff line number Diff line change 1
1
.gradle /
2
2
tools /
3
+ example /build /
Original file line number Diff line number Diff line change
1
+ $ErrorActionPreference = ' Stop'
2
+
3
+ Set-Location - LiteralPath $PSScriptRoot
4
+
5
+ $env: DOTNET_SKIP_FIRST_TIME_EXPERIENCE = ' 1'
6
+ $env: DOTNET_CLI_TELEMETRY_OPTOUT = ' 1'
7
+ $env: DOTNET_NOLOGO = ' 1'
8
+
9
+ # ensure a most-recent debug-build, so we can reference that.
10
+ dotnet build ../ ../ src/ Cake.Gradle/ Cake.Gradle.csproj
11
+ if ($LASTEXITCODE -ne 0 ) { exit $LASTEXITCODE }
12
+
1
13
dotnet run -- project build/ Build.csproj -- $args
2
- exit $LASTEXITCODE ;
14
+ exit $LASTEXITCODE ;
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ cd " $( dirname " ${BASH_SOURCE[0]} " ) "
5
+
6
+ export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
7
+ export DOTNET_CLI_TELEMETRY_OPTOUT=1
8
+ export DOTNET_NOLOGO=1
9
+
10
+ # ensure a most-recent debug-build, so we can reference that.
11
+ dotnet build ../../src/Cake.Gradle/Cake.Gradle.csproj
12
+
1
13
dotnet run --project ./build/Build.csproj -- " $@ "
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
3
<OutputType >Exe</OutputType >
4
- <TargetFramework >net8 .0</TargetFramework >
4
+ <TargetFramework >net9 .0</TargetFramework >
5
5
<RunWorkingDirectory >$(MSBuildProjectDirectory)</RunWorkingDirectory >
6
6
</PropertyGroup >
7
7
<ItemGroup >
8
- <PackageReference Include =" Cake.Frosting" Version =" 4 .0.0" />
8
+ <PackageReference Include =" Cake.Frosting" Version =" 5 .0.0" />
9
9
</ItemGroup >
10
10
<ItemGroup >
11
11
<Reference Include =" Cake.Gradle" >
12
- <HintPath >$(ProjectDir)../../../src/Cake.Gradle/bin/Release/net8 .0/Cake.Gradle.dll</HintPath >
12
+ <HintPath >$(ProjectDir)../../../src/Cake.Gradle/bin/Debug/net9 .0/Cake.Gradle.dll</HintPath >
13
13
</Reference >
14
14
</ItemGroup >
15
15
</Project >
Original file line number Diff line number Diff line change 3
3
"isRoot" : true ,
4
4
"tools" : {
5
5
"cake.tool" : {
6
- "version" : " 4 .0.0" ,
6
+ "version" : " 5 .0.0" ,
7
7
"commands" : [
8
8
" dotnet-cake"
9
9
]
10
10
}
11
11
}
12
- }
12
+ }
Original file line number Diff line number Diff line change 1
1
.gradle /
2
2
tools /
3
+ example /build /
Original file line number Diff line number Diff line change 1
1
// build artifacts first by executing ./build.ps1 in root
2
- #r "../../src/Cake.Gradle/bin/Release/net8 .0/Cake.Gradle.dll"
2
+ #r "../../src/Cake.Gradle/bin/Debug/net9 .0/Cake.Gradle.dll"
3
3
4
4
// requires Java Runtime Environment
5
5
@@ -25,4 +25,4 @@ Task("Gradle-Example")
25
25
Gradle . FromPath ( "./example" ) . WithTask ( "hello" ) . WithArguments ( "--offline --build-file build.gradle" ) . Run ( ) ;
26
26
} ) ;
27
27
28
- RunTarget ( "Gradle-Example" ) ;
28
+ RunTarget ( "Gradle-Example" ) ;
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ $env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = '1'
6
6
$env: DOTNET_CLI_TELEMETRY_OPTOUT = ' 1'
7
7
$env: DOTNET_NOLOGO = ' 1'
8
8
9
+ # ensure a most-recent debug-build, so we can reference that.
10
+ dotnet build ../ ../ src/ Cake.Gradle/ Cake.Gradle.csproj
11
+ if ($LASTEXITCODE -ne 0 ) { exit $LASTEXITCODE }
12
+
9
13
dotnet tool restore
10
14
if ($LASTEXITCODE -ne 0 ) { exit $LASTEXITCODE }
11
15
You can’t perform that action at this time.
0 commit comments