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)?;