ci: build musl static binary, fix cargo path (hardcode github-runner home)

This commit is contained in:
2026-02-23 18:08:57 +00:00
parent 05c765627f
commit f74b781d1f

View File

@@ -17,15 +17,15 @@ jobs:
- uses: actions/checkout@v4
- name: Set up Rust
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Cache cargo
uses: Swatinem/rust-cache@v2
- name: Build release binary
run: |
cargo build --release --package nora-registry
cp target/release/nora ./nora
echo "/home/github-runner/.cargo/bin" >> $GITHUB_PATH
echo "RUSTUP_HOME=/home/github-runner/.rustup" >> $GITHUB_ENV
echo "CARGO_HOME=/home/github-runner/.cargo" >> $GITHUB_ENV
- name: Build release binary (musl static)
run: |
cargo build --release --target x86_64-unknown-linux-musl --package nora-registry
cp target/x86_64-unknown-linux-musl/release/nora ./nora
- name: Upload binary
uses: actions/upload-artifact@v4