Skip to content

Commit

Permalink
Skip ruby build caching for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
reese authored Jan 26, 2024
1 parent 78c57d7 commit 6beb50a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env:
GEM_HOME: /tmp/.bundle
GEM_PATH: /tmp/.bundle
TERM: xterm256
FORCE_FULL_RUBY_BUILD: 1

jobs:
build:
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_ok() => {}
_ => {
make_configure(&ruby_checkout_path)?;
run_configure(&ruby_checkout_path)?;
Expand Down

0 comments on commit 6beb50a

Please sign in to comment.