diff --git a/.github/workflows/preview-release.yaml b/.github/workflows/preview-release.yaml index 0764837f..ea7e7435 100644 --- a/.github/workflows/preview-release.yaml +++ b/.github/workflows/preview-release.yaml @@ -6,7 +6,7 @@ on: - completed push: # Run only on trunk pushes that aren't a new tag release - branches: [trunk] + branches: [trunk, reese-preview-release] tags-ignore: "*" env: @@ -14,6 +14,7 @@ env: GEM_HOME: /tmp/.bundle GEM_PATH: /tmp/.bundle TERM: xterm256 + FORCE_FULL_RUBY_BUILD: 1 jobs: bump-tag: @@ -118,11 +119,11 @@ jobs: - uses: actions/download-artifact@v3 with: name: rubyfmt-release-artifact-macos-latest-native - - name: Upload Release - uses: softprops/action-gh-release@v1 - with: - files: rubyfmt-*.tar.gz - fail_on_unmatched_files: true - generate_release_notes: true - prerelease: true - tag_name: ${{ steps.get-latest-tag.outputs.tag }} + # - name: Upload Release + # uses: softprops/action-gh-release@v1 + # with: + # files: rubyfmt-*.tar.gz + # fail_on_unmatched_files: true + # generate_release_notes: true + # prerelease: true + # tag_name: ${{ steps.get-latest-tag.outputs.tag }} diff --git a/librubyfmt/build.rs b/librubyfmt/build.rs index 401698b9..2c95af53 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_ok() => {} _ => { make_configure(&ruby_checkout_path)?; run_configure(&ruby_checkout_path)?;