Skip to content

Nightly/release: build only shipped binaries + fix draft-staging cleanup - #28

Merged
volen-silo merged 2 commits into
mainfrom
nightly-build-only-shipped
Jun 18, 2026
Merged

Nightly/release: build only shipped binaries + fix draft-staging cleanup#28
volen-silo merged 2 commits into
mainfrom
nightly-build-only-shipped

Conversation

@volen-silo

@volen-silo volen-silo commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Two nightly/release packaging fixes.

1. Build only shipped binaries (speed up)

The build steps ran cargo build --release --workspace, compiling the whole workspace in release mode inside manylinux — including the six standalone rocm-engine-* binaries and rocm-dash-daemon that are no longer shipped (bundle is rocm + rocmd), plus test/example targets. Narrowed to:

- cargo build --release --workspace
+ cargo build --release -p rocm -p rocmd -p xtask

Engine library crates still compile (linked into rocm for the in-process engines), so behavior is unchanged; we skip the redundant binary link/codegen. Full-workspace compilation stays covered by ci.yml's build-and-test. (nightly.yml + release.yml, Linux + Windows.)

2. Fix publish-nightly failing on staging cleanup

The first fully-working nightly published the rolling nightly release with all 16 assets, then the job failed on its last line:

HTTP 422: Reference does not exist (.../git/refs/tags/nightly-staging-…)

gh release delete "$STAGING_TAG" --yes --cleanup-tag 422s because the staging release is a --draft, and draft releases never create a git tag — so there's nothing for --cleanup-tag to delete. Dropped --cleanup-tag and made it tolerant, matching the other two staging-delete sites. (release.yml doesn't have this pattern — it publishes via --draft=false.)

Status

The convenience-asset + signing pipeline is otherwise working end-to-end — the latest manual nightly already produced a healthy nightly release (signed bundles + rocm/rocm.exe/linux-binaries.tar.gz/windows-binaries.zip). This PR just makes the run go fully green and trims build time.

@volen-silo volen-silo changed the title Speed up nightly/release: build only shipped binaries Nightly/release: build only shipped binaries + fix draft-staging cleanup Jun 18, 2026
The nightly/release build steps ran `cargo build --release --workspace`,
compiling the full workspace in release mode inside manylinux — including the
standalone rocm-engine-* binaries and rocm-dash-daemon that are no longer
shipped (the bundle is rocm + rocmd), plus all test/example targets.

Narrow the build to the binaries that are actually packaged plus the signing
tool: `cargo build --release -p rocm -p rocmd -p xtask`. The engine library
crates still compile (they are linked into rocm for the in-process engines), so
behavior is unchanged; we just skip the redundant binary link/codegen steps.
Full-workspace compilation remains covered by ci.yml's build-and-test.
publish-nightly ended with `gh release delete "$STAGING_TAG" --yes
--cleanup-tag`, which failed the job with HTTP 422 "Reference does not exist":
the staging release is created as a --draft, and draft releases never create a
git tag, so there is nothing for --cleanup-tag to delete. The rolling `nightly`
release and all assets had already been published successfully; only this final
cleanup line failed.

Drop --cleanup-tag (delete just the draft) and tolerate errors, matching the
other two staging-delete sites.
@volen-silo
volen-silo force-pushed the nightly-build-only-shipped branch from 450747c to b4523d7 Compare June 18, 2026 13:54
@volen-silo
volen-silo added this pull request to the merge queue Jun 18, 2026
Merged via the queue into main with commit 66ac035 Jun 18, 2026
7 checks passed
@rominf
rominf deleted the nightly-build-only-shipped branch July 22, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants