Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,21 @@ jobs:
timeout-minutes: 90
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false

- name: Build
env:
CELLD_BUILD_COMMIT: ${{ github.sha }}
run: |
set -euo pipefail
rustup toolchain install "$RUST_VERSION" --profile minimal
rustup default "$RUST_VERSION"
cargo build --release --locked
version=$(sed -n 's/^version = "\(.*\)"$/\1/p' crates/celld/Cargo.toml | head -1)
target/release/celld --version | grep -F "$version"
build_identity=$(target/release/celld --version)
grep -F "$version" <<< "$build_identity"
grep -F "$GITHUB_SHA" <<< "$build_identity"

- name: Package
run: |
Expand Down Expand Up @@ -86,6 +92,8 @@ jobs:
packages: read
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false

- uses: docker/setup-buildx-action@v3

Expand Down Expand Up @@ -120,6 +128,8 @@ jobs:
attestations: write
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false

- uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -209,6 +219,7 @@ jobs:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.release.tag_name }}
persist-credentials: false

- name: Resolve and validate the release tag
run: |
Expand Down Expand Up @@ -261,6 +272,7 @@ jobs:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.release.tag_name }}
persist-credentials: false

- name: Resolve and validate the release tag
run: |
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/celld/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "celld"
version = "0.2.1-coderabbit.1"
version = "0.2.1-coderabbit.2"
edition = "2021"
rust-version = "1.94.1"
license = "Apache-2.0"
Expand Down
6 changes: 5 additions & 1 deletion crates/celld/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4133,7 +4133,11 @@ async fn async_main(telemetry_config: Option<celld::telemetry::Config>) -> anyho
} else {
""
};
println!("celld {}{profile}", env!("CARGO_PKG_VERSION"));
let commit = option_env!("CELLD_BUILD_COMMIT").unwrap_or("unknown");
println!(
"celld {}{profile} (commit {commit})",
env!("CARGO_PKG_VERSION")
);
return Ok(());
}
Action::Diagnose {
Expand Down