pub struct BinarySpec {
pub image: Option<String>,
pub ldflags: Option<String>,
pub main: Option<String>,
pub name: Option<String>,
pub out: Option<String>,
pub platforms: Option<Vec<String>>,
pub run: Option<String>,
}Fields§
§image: Option<String>Image is the toolchain image the recipe runs in, a Go bookworm image by default. It is the one field the GitHub lane ignores: there the runner IS the toolchain, and a cluster has to be told what a runner already is.
ldflags: Option<String>Ldflags are the Go linker flags, -s -w when the recipe names none, on one line. Go lane only.
main: Option<String>Main is the Go package to build, repo-relative (. or ./cmd/x), and it selects the GO LANE. Defaults to . when neither lane is named; declaring it together with run is refused.
name: Option<String>Name is the artifact’s base name: the prefix of every file published for this entry, and the name a host later asks for. It must match ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$, which is what makes it safe as both a filename and a URL path segment.
out: Option<String>Out is the glob of files run produced, relative to the repo root; matching nothing FAILS the build rather than publishing an empty entry. It expands unquoted, so it is bounded to path and glob characters. The Go lane names its own files and ignores this.
platforms: Option<Vec<String>>Platforms are the <os>/<arch> pairs the Go lane cross-compiles, [linux/amd64] by default. Each one publishes as <name>-<os>-<arch>, which is the shape a host resolves a binary BY — so the list is what a caller can ask for later.
run: Option<String>Run is any other toolchain’s build command, run by sh -c in this entry’s image, and it selects the OTHER LANE. Arbitrary shell is the point — it is the same trust as a Dockerfile RUN — which is why it executes with no object-store credential and no service-account token. It requires out.
Implementations§
Source§impl BinarySpec
impl BinarySpec
pub fn new() -> BinarySpec
Trait Implementations§
Source§impl Clone for BinarySpec
impl Clone for BinarySpec
Source§fn clone(&self) -> BinarySpec
fn clone(&self) -> BinarySpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more