mirror of
https://github.com/apple/pkl.git
synced 2026-04-25 01:38:34 +02:00
Clean up unnecessary CI (#502)
This commit is contained in:
@@ -51,44 +51,6 @@ main {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: remove me once policy allows these jobs without approval
|
|
||||||
circleCi {
|
|
||||||
workflows {
|
|
||||||
["release-branch"] {
|
|
||||||
jobs = new Listing<*Mapping<String, WorkflowJob>|String> {
|
|
||||||
new {
|
|
||||||
["hold"] {
|
|
||||||
type = "approval"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
new {
|
|
||||||
["pr-approval/authenticate"] {
|
|
||||||
context = "pkl-pr-approval"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for (job in super.jobs) {
|
|
||||||
job |> requireApproval
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: remove me once policy allows these jobs without approval
|
|
||||||
local requireApproval = (it: String|Mapping<String, WorkflowJob>) ->
|
|
||||||
if (it is String)
|
|
||||||
new Mapping<String, WorkflowJob> {
|
|
||||||
[it] {
|
|
||||||
requires { "hold" }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
(it) {
|
|
||||||
[it.keys.first] {
|
|
||||||
requires { "hold" }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
release {
|
release {
|
||||||
jobs {
|
jobs {
|
||||||
...releaseJobs
|
...releaseJobs
|
||||||
|
|||||||
@@ -883,37 +883,15 @@ workflows:
|
|||||||
only: /^v?\d+\.\d+\.\d+$/
|
only: /^v?\d+\.\d+\.\d+$/
|
||||||
release-branch:
|
release-branch:
|
||||||
jobs:
|
jobs:
|
||||||
- hold:
|
- gradle-check-jdk17
|
||||||
type: approval
|
- gradle-check-jdk21
|
||||||
- pr-approval/authenticate:
|
- bench
|
||||||
context: pkl-pr-approval
|
- gradle-compatibility
|
||||||
- gradle-check-jdk17:
|
- pkl-cli-macOS-amd64-release
|
||||||
requires:
|
- pkl-cli-linux-amd64-release
|
||||||
- hold
|
- pkl-cli-macOS-aarch64-release
|
||||||
- gradle-check-jdk21:
|
- pkl-cli-linux-aarch64-release
|
||||||
requires:
|
- pkl-cli-linux-alpine-amd64-release
|
||||||
- hold
|
|
||||||
- bench:
|
|
||||||
requires:
|
|
||||||
- hold
|
|
||||||
- gradle-compatibility:
|
|
||||||
requires:
|
|
||||||
- hold
|
|
||||||
- pkl-cli-macOS-amd64-release:
|
|
||||||
requires:
|
|
||||||
- hold
|
|
||||||
- pkl-cli-linux-amd64-release:
|
|
||||||
requires:
|
|
||||||
- hold
|
|
||||||
- pkl-cli-macOS-aarch64-release:
|
|
||||||
requires:
|
|
||||||
- hold
|
|
||||||
- pkl-cli-linux-aarch64-release:
|
|
||||||
requires:
|
|
||||||
- hold
|
|
||||||
- pkl-cli-linux-alpine-amd64-release:
|
|
||||||
requires:
|
|
||||||
- hold
|
|
||||||
when:
|
when:
|
||||||
matches:
|
matches:
|
||||||
value: << pipeline.git.branch >>
|
value: << pipeline.git.branch >>
|
||||||
|
|||||||
Reference in New Issue
Block a user