mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-18 14:00:39 +00:00
* chore(version): refresh build info on demand Introduce a `refresh-build-info` feature to `common-version` to control whether build timestamps are updated. By default, timestamps are no longer refreshed, and `shadow.rs` regeneration is skipped if it already exists. This prevents the build script from invalidating incremental compilation results when nothing else has changed. CI and release builds are updated to explicitly enable this feature. Signed-off-by: Lei, HUANG <mrsatangel@gmail.com> * chore/refresh-build-info-on-demand: ### Update Build Configuration - **Remove `refresh-build-info` Feature:** - Removed the `refresh-build-info` feature from `action.yml`, `release.yml`, and `Cargo.toml`. - Updated `build.rs` to refresh timestamps by default in release builds, with an option to disable via `DISABLE_BUILD_INFO`. - **Modify GitHub Actions:** - Updated `.github/actions/build-linux-artifacts/action.yml` and `.github/workflows/release.yml` to exclude `refresh-build-info` from the `features` list. - **Enhance Build Script Logic:** - Adjusted logic in `build.rs` to handle timestamp refreshing based on build profile and environment variables. Signed-off-by: Lei, HUANG <mrsatangel@gmail.com> --------- Signed-off-by: Lei, HUANG <mrsatangel@gmail.com>