Skip to content

Commit

Permalink
Fix busted preview-release build by forcing full ruby builds (#458)
Browse files Browse the repository at this point in the history
* Skip ruby build caching for releases

* Rollback testing stuff

* comment
  • Loading branch information
reese committed Feb 7, 2024
1 parent 78c57d7 commit 48f336e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/preview-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env:
GEM_HOME: /tmp/.bundle
GEM_PATH: /tmp/.bundle
TERM: xterm256
FORCE_FULL_RUBY_BUILD: 1

jobs:
bump-tag:
Expand Down
3 changes: 2 additions & 1 deletion librubyfmt/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down

0 comments on commit 48f336e

Please sign in to comment.