mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
This switches our builds over to GitHub Actions! TODO: * Add macOS/amd64 native-image builds; this isn't working right now * Patch musl with security patches * Add benchmark jobs over time As part of this build, PRBs will now only run `./gradlew check` on Linux, but other jobs can be run using slash commands, e.g. `[windows]` to run `./gradle check` on Windows.
32 lines
513 B
Plaintext
32 lines
513 B
Plaintext
extends "GradleJob.pkl"
|
|
|
|
import "@gha/actions/Artifact.pkl"
|
|
import "@gha/actions/Common.pkl"
|
|
import "@gha/Workflow.pkl"
|
|
import "@pkl.impl.ghactions/helpers.pkl"
|
|
|
|
local self = this
|
|
|
|
command: String
|
|
|
|
arch = "amd64"
|
|
|
|
os = "linux"
|
|
|
|
steps {
|
|
new Common.Checkout {}
|
|
new Artifact.Download {
|
|
with {
|
|
pattern = "executable-**"
|
|
}
|
|
}
|
|
new Workflow.Step {
|
|
run = "./gradlew \(self.gradleArgs) \(module.command)"
|
|
}
|
|
|> helpers.withMavenPublishSecrets
|
|
}
|
|
|
|
fixed job {
|
|
environment = "maven-release"
|
|
}
|