diff --git a/buildconfigs/stage0_bin.toml b/buildconfigs/stage0_bin.toml index f0dd1ea7282..c94eec7f3ed 100644 --- a/buildconfigs/stage0_bin.toml +++ b/buildconfigs/stage0_bin.toml @@ -1,18 +1,5 @@ # This is the static build configuration that we use with the docker-based SLSA3 generator for # building the `stage0` binary, and its provenance. # See https://github.com/slsa-framework/slsa-github-generator/tree/main/internal/builders/docker. -command = [ - "nix", - "develop", - ".#rust", - "--command", - "env", - "--chdir=stage0_bin", - "cargo", - "objcopy", - "--release", - "--", - "--output-target=binary", - "target/x86_64-unknown-none/release/stage0_bin", -] +command = ["nix", "develop", ".#rust", "--command", "just", "stage0_bin"] artifact_path = "./stage0_bin/target/x86_64-unknown-none/release/stage0_bin" diff --git a/buildconfigs_full_provenance/stage0_bin.toml b/buildconfigs_full_provenance/stage0_bin.toml index 93a460d081c..42d5dca36c4 100644 --- a/buildconfigs_full_provenance/stage0_bin.toml +++ b/buildconfigs_full_provenance/stage0_bin.toml @@ -1,5 +1,12 @@ # TODO: b/333745447 - Merge this dir with ./buildconfigs, replacing the provenance's counterparts there. # This is the static build configuration that we use `slsa-github-generator` to # create a provenance that lists the predicted attestation measurements as subjects. -command = ["just", "stage0_provenance_subjects"] +command = [ + "nix", + "develop", + ".#rust", + "--command", + "just", + "stage0_provenance_subjects" +] artifact_path = "./stage0_bin/bin/subjects/*"