Merge pull request #10482 from MikeMcQuaid/tests-bootsnap
workflows/tests: set HOMEBREW_BOOTSNAP.
This commit is contained in:
commit
d37c8c99f2
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@ -169,6 +169,8 @@ jobs:
|
|||||||
test-default-formula-linux:
|
test-default-formula-linux:
|
||||||
name: test default formula (Linux)
|
name: test default formula (Linux)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
HOMEBREW_BOOTSNAP: 1
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Homebrew
|
- name: Set up Homebrew
|
||||||
id: set-up-homebrew
|
id: set-up-homebrew
|
||||||
@ -183,6 +185,8 @@ jobs:
|
|||||||
needs: syntax
|
needs: syntax
|
||||||
if: startsWith(github.repository, 'Homebrew/')
|
if: startsWith(github.repository, 'Homebrew/')
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
env:
|
||||||
|
HOMEBREW_BOOTSNAP: 1
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Homebrew
|
- name: Set up Homebrew
|
||||||
id: set-up-homebrew
|
id: set-up-homebrew
|
||||||
|
|||||||
@ -14,9 +14,8 @@ if !ENV["HOMEBREW_NO_BOOTSNAP"] &&
|
|||||||
rescue LoadError
|
rescue LoadError
|
||||||
raise if ENV["HOMEBREW_BOOTSNAP_RETRY"]
|
raise if ENV["HOMEBREW_BOOTSNAP_RETRY"]
|
||||||
|
|
||||||
Dir.chdir(HOMEBREW_LIBRARY_PATH) do
|
require "utils/gems"
|
||||||
system "bundle", "install", "--standalone"
|
Homebrew.install_bundler_gems!
|
||||||
end
|
|
||||||
|
|
||||||
ENV["HOMEBREW_BOOTSNAP_RETRY"] = "1"
|
ENV["HOMEBREW_BOOTSNAP_RETRY"] = "1"
|
||||||
exec ENV["HOMEBREW_BREW_FILE"], *ARGV
|
exec ENV["HOMEBREW_BREW_FILE"], *ARGV
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user