ci: build and upload a release Linux binary as a run artifact - #33
Merged
Merged
Conversation
Adds .github/workflows/release.yml. On workflow_dispatch, push to main, and v* tags it builds `cargo build --release --locked` on the same [self-hosted, linux, x64] ephemerd runner class that produced the node binaries (glibc-compatible, no musl/container) and uploads target/release/switchboard as artifact switchboard-linux-x64-<shortsha>. Mirrors ci.yml conventions: actions/checkout@v4, the run-time privilege-escalation build-prerequisites step (build-essential+pkg-config), dtolnay stable toolchain, Swatinem/rust-cache. No GitHub Release, no signing.
|
ePHPm Preview — removed Preview deployment has been torn down. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
.github/workflows/release.yml. Onworkflow_dispatch, push tomain, andv*tags, it builds a release Linux binary of switchboard and uploads it as a run artifact so it can be deployed to the preview nodes.Why
switchboard has only had
ci.yml(format/clippy/test/MSRV) — nothing built or uploaded a binary. The preview nodes run an ad-hocswitchboard 0.1.0; we need one frommain(now includes #32, the preview-authrepofield). Merging this runs it immediately (push: main) and produces the artifact.Details
[self-hosted, linux, x64]— same ephemerd runner class that built the working node binary, so glibc-compatible (no musl/container).ci.yml:checkout@v4, the verbatim privilege-escalation "Install build prerequisites" step,dtolnay/rust-toolchain@stable,Swatinem/rust-cache@v2.cargo build --release --locked→ uploadstarget/release/switchboardasswitchboard-linux-x64-<short-sha>,if-no-files-found: error.Validation
actionlint clean; single
[package] switchboardbin →target/release/switchboard;Cargo.lockpresent so--lockedis safe.