dev-cmd/dispatch-build-bottle: support arm64 Linux
This will make it easier to dispatch bottle builds for arm64 Linux.
This commit is contained in:
		
							parent
							
								
									09eceba798
								
							
						
					
					
						commit
						40588b0ad9
					
				@ -26,9 +26,11 @@ module Homebrew
 | 
			
		||||
        switch "--upload",
 | 
			
		||||
               description: "Upload built bottles."
 | 
			
		||||
        switch "--linux",
 | 
			
		||||
               description: "Dispatch bottle for Linux (using GitHub runners)."
 | 
			
		||||
               description: "Dispatch bottle for Linux x86_64 (using GitHub runners)."
 | 
			
		||||
        switch "--linux-arm64",
 | 
			
		||||
               description: "Dispatch bottle for Linux arm64 (using GitHub runners)."
 | 
			
		||||
        switch "--linux-self-hosted",
 | 
			
		||||
               description: "Dispatch bottle for Linux (using self-hosted runner)."
 | 
			
		||||
               description: "Dispatch bottle for Linux x86_64 (using self-hosted runner)."
 | 
			
		||||
        switch "--linux-wheezy",
 | 
			
		||||
               description: "Use Debian Wheezy container for building the bottle on Linux."
 | 
			
		||||
 | 
			
		||||
@ -70,7 +72,11 @@ module Homebrew
 | 
			
		||||
          runners << "linux-self-hosted-1"
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
        raise UsageError, "Must specify `--macos`, `--linux` or `--linux-self-hosted` option." if runners.empty?
 | 
			
		||||
        runners << "ubuntu-22.04-arm" if args.linux_arm64?
 | 
			
		||||
 | 
			
		||||
        if runners.empty?
 | 
			
		||||
          raise UsageError, "Must specify `--macos`, `--linux`, `--linux-arm64`, or `--linux-self-hosted` option."
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
        args.named.to_resolved_formulae.each do |formula|
 | 
			
		||||
          # Required inputs
 | 
			
		||||
 | 
			
		||||
@ -17,6 +17,9 @@ class Homebrew::DevCmd::DispatchBuildBottle::Args < Homebrew::CLI::Args
 | 
			
		||||
  sig { returns(T::Boolean) }
 | 
			
		||||
  def linux?; end
 | 
			
		||||
 | 
			
		||||
  sig { returns(T::Boolean) }
 | 
			
		||||
  def linux_arm64?; end
 | 
			
		||||
 | 
			
		||||
  sig { returns(T::Boolean) }
 | 
			
		||||
  def linux_self_hosted?; end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user