Skip to content

Commit b6ddd8c

Browse files
committed
WIP
1 parent 099e112 commit b6ddd8c

File tree

8 files changed

+30
-21
lines changed

8 files changed

+30
-21
lines changed

.github/index.pkl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,18 @@ testReports {
2020
}
2121
}
2222

23-
local gradleCheck: SimpleGradleJob = new {
23+
local baseGradleCheck: SimpleGradleJob = new {
2424
isRelease = false
25-
os = "linux"
2625
command = "check"
26+
fetchDepth = 0
2727
}
2828

29-
local gradleCheckWindows: SimpleGradleJob = new {
30-
isRelease = false
29+
local gradleCheck = (baseGradleCheck) {
30+
os = "linux"
31+
}
32+
33+
local gradleCheckWindows = (baseGradleCheck) {
3134
os = "windows"
32-
command = "check"
3335
}
3436

3537
local typealias PklJobs = Mapping<String, PklJob>

.github/jobs/GithubRelease.pkl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import "@gha/actions/Artifact.pkl"
66
import "@gha/Context.pkl"
77

88
fixed job {
9-
`runs-on` = "ubuntu-24.04"
9+
`runs-on` = "ubuntu-latest"
1010
permissions {
1111
contents = "write"
1212
}

.github/jobs/GradleJob.pkl

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ extraGradleArgs: Listing<String>
2222

2323
steps: Listing<*Workflow.Step | Workflow.TypedStep>
2424

25+
/// The fetch depth to use
26+
fetchDepth: Int = 1
27+
2528
fixed gradleArgs =
2629
new Listing {
2730
"--info"
@@ -52,13 +55,17 @@ fixed job {
5255
if (os == "linux" && arch == "amd64")
5356
"ubuntu-latest"
5457
else if (os == "linux" && arch == "aarch64")
55-
"ubuntu-latest-arm"
58+
"ubuntu-24.04-arm"
5659
else if (os == "windows")
5760
"windows-latest"
58-
else if (nightlyMacOS)
59-
new Listing { "self-hosted"; "macos"; "nightly" }
6061
else
61-
new Listing { "self-hosted"; "macos" }
62+
new Listing {
63+
"self-hosted"
64+
"macos"
65+
when (nightlyMacOS) {
66+
"nightly"
67+
}
68+
}
6269
steps {
6370
// full checkout (needed for spotless)
6471
new Common.Checkout {

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/prb.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/release-branch.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)