From 77a7f4ad459b268ae59e0e0c51eca92b141fa950 Mon Sep 17 00:00:00 2001 From: Daniel Sukoneck Date: Tue, 12 Nov 2024 14:47:59 -0700 Subject: [PATCH] test build_info --- .github/workflows/release.yaml | 1 + src/build_info.rs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index bb99809..a2d1a48 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -97,6 +97,7 @@ jobs: git config --global --add safe.directory "$(pwd)" . $HOME/.cargo/env cargo build --release --target ${{ matrix.configs.target }} + ./target/${{ matrix.configs.target }}/release/rbuilder version - name: Upload artifact uses: actions/upload-artifact@v4 diff --git a/src/build_info.rs b/src/build_info.rs index 6808554..d3c6dc5 100644 --- a/src/build_info.rs +++ b/src/build_info.rs @@ -5,8 +5,8 @@ mod internal { } use internal::{ - BUILT_TIME_UTC, FEATURES, GIT_COMMIT_HASH_SHORT, GIT_DIRTY, GIT_HEAD_REF, PROFILE, - RUSTC_VERSION, CI_PLATFORM, + BUILT_TIME_UTC, FEATURES, GIT_COMMIT_HASH_SHORT, GIT_HEAD_REF, PROFILE, + RUSTC_VERSION, CI_PLATFORM, // GIT_DIRTY, }; use rbuilder::utils::build_info::Version; @@ -14,7 +14,7 @@ pub fn print_version_info() { // println!("dirty: {}", GIT_DIRTY.unwrap_or_default()); println!("commit: {}", GIT_COMMIT_HASH_SHORT.unwrap_or_default()); println!("branch: {}", GIT_HEAD_REF.unwrap_or_default()); - println!("build_platform: {}", CI_PLATFORM); + println!("build_platform: {:?}", CI_PLATFORM); println!("build_time: {}", BUILT_TIME_UTC); println!("features: {:?}", FEATURES); println!("profile: {}", PROFILE);