Support Bootsnap in Ruby 3
This commit is contained in:
parent
329f8c7ca3
commit
2aa12893b0
1
.github/workflows/tests.yml
vendored
1
.github/workflows/tests.yml
vendored
@ -326,7 +326,6 @@ jobs:
|
|||||||
if: matrix.ruby
|
if: matrix.ruby
|
||||||
run: |
|
run: |
|
||||||
echo "HOMEBREW_USE_RUBY_FROM_PATH=1" >> "${GITHUB_ENV}"
|
echo "HOMEBREW_USE_RUBY_FROM_PATH=1" >> "${GITHUB_ENV}"
|
||||||
echo "HOMEBREW_BOOTSNAP=" >> "${GITHUB_ENV}" # Unsupported, for now
|
|
||||||
rm -rf "${{ steps.set-up-homebrew.outputs.repository-path }}/Library/Homebrew/vendor/portable-ruby"
|
rm -rf "${{ steps.set-up-homebrew.outputs.repository-path }}/Library/Homebrew/vendor/portable-ruby"
|
||||||
|
|
||||||
- run: brew config
|
- run: brew config
|
||||||
|
@ -3,9 +3,7 @@
|
|||||||
|
|
||||||
# Disable Rails cops, as we haven't required active_support yet.
|
# Disable Rails cops, as we haven't required active_support yet.
|
||||||
# rubocop:disable Rails
|
# rubocop:disable Rails
|
||||||
homebrew_bootsnap_enabled = ENV["HOMEBREW_NO_BOOTSNAP"].nil? &&
|
homebrew_bootsnap_enabled = ENV["HOMEBREW_NO_BOOTSNAP"].nil? && !ENV["HOMEBREW_BOOTSNAP"].nil?
|
||||||
!ENV["HOMEBREW_BOOTSNAP"].nil? &&
|
|
||||||
ENV["HOMEBREW_RUBY3"].nil?
|
|
||||||
|
|
||||||
# we need some development tools to build bootsnap native code
|
# we need some development tools to build bootsnap native code
|
||||||
homebrew_bootsnap_enabled &&= if ENV["HOMEBREW_MACOS_VERSION"]
|
homebrew_bootsnap_enabled &&= if ENV["HOMEBREW_MACOS_VERSION"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user