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:
 | 
			
		||||
    name: test default formula (Linux)
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    env:
 | 
			
		||||
      HOMEBREW_BOOTSNAP: 1
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Set up Homebrew
 | 
			
		||||
        id: set-up-homebrew
 | 
			
		||||
@ -183,6 +185,8 @@ jobs:
 | 
			
		||||
    needs: syntax
 | 
			
		||||
    if: startsWith(github.repository, 'Homebrew/')
 | 
			
		||||
    runs-on: macos-latest
 | 
			
		||||
    env:
 | 
			
		||||
      HOMEBREW_BOOTSNAP: 1
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Set up Homebrew
 | 
			
		||||
        id: set-up-homebrew
 | 
			
		||||
 | 
			
		||||
@ -14,9 +14,8 @@ if !ENV["HOMEBREW_NO_BOOTSNAP"] &&
 | 
			
		||||
  rescue LoadError
 | 
			
		||||
    raise if ENV["HOMEBREW_BOOTSNAP_RETRY"]
 | 
			
		||||
 | 
			
		||||
    Dir.chdir(HOMEBREW_LIBRARY_PATH) do
 | 
			
		||||
      system "bundle", "install", "--standalone"
 | 
			
		||||
    end
 | 
			
		||||
    require "utils/gems"
 | 
			
		||||
    Homebrew.install_bundler_gems!
 | 
			
		||||
 | 
			
		||||
    ENV["HOMEBREW_BOOTSNAP_RETRY"] = "1"
 | 
			
		||||
    exec ENV["HOMEBREW_BREW_FILE"], *ARGV
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user