From 48f336eef1a63bfc550cdb34a8da45cf896809e1 Mon Sep 17 00:00:00 2001 From: Reese Williams Date: Wed, 7 Feb 2024 08:58:33 -0800 Subject: [PATCH] Fix busted preview-release build by forcing full ruby builds (#458) * Skip ruby build caching for releases * Rollback testing stuff * comment --- .github/workflows/preview-release.yaml | 1 + librubyfmt/build.rs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/preview-release.yaml b/.github/workflows/preview-release.yaml index 0764837f..3eaa5b19 100644 --- a/.github/workflows/preview-release.yaml +++ b/.github/workflows/preview-release.yaml @@ -14,6 +14,7 @@ env: GEM_HOME: /tmp/.bundle GEM_PATH: /tmp/.bundle TERM: xterm256 + FORCE_FULL_RUBY_BUILD: 1 jobs: bump-tag: diff --git a/librubyfmt/build.rs b/librubyfmt/build.rs index 401698b9..296b7490 100644 --- a/librubyfmt/build.rs +++ b/librubyfmt/build.rs @@ -47,7 +47,8 @@ fn main() -> Output { // Only rerun this build if the ruby_checkout has changed match old_checkout_sha { - Some(old_sha) if old_sha == new_checkout_sha => {} + Some(old_sha) + if old_sha == new_checkout_sha && env::var("FORCE_FULL_RUBY_BUILD").is_err() => {} _ => { make_configure(&ruby_checkout_path)?; run_configure(&ruby_checkout_path)?;