Skip to content

Commit

Permalink
Merge pull request #1 from taskcluster/matt-boris/installViaBrew
Browse files Browse the repository at this point in the history
feat(cli): `taskcluster` cli installable via brew
  • Loading branch information
matt-boris authored Aug 2, 2022
2 parents 3922f77 + aa43552 commit fb4d69b
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Formula/taskcluster.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
class Taskcluster < Formula
desc "CI for Engineers"
homepage "https://taskcluster.net"
version "v44.17.2"
license "MPL-2.0"

if OS.mac?
if Hardware::CPU.physical_cpu_arm64?
url "https://github.com/taskcluster/taskcluster/releases/download/#{version}/taskcluster-darwin-arm64", :using => :curl
sha256 "1ccf56972988f45c88e9a21a536728f1064eabef49a9d085e16ac41db14214a5"
else
url "https://github.com/taskcluster/taskcluster/releases/download/#{version}/taskcluster-darwin-amd64", :using => :curl
sha256 "7897baf6c27350e5a6fe46e93f9bb4890f5dd98a117196acfb4267e639624a5c"
end
elsif OS.linux?
url "https://github.com/taskcluster/taskcluster/releases/download/#{version}/taskcluster-linux-amd64", :using => :curl
sha256 "d12b40c048e96bd5376f9d28c4831075ee6b74b3c8b9bd3d85f57cc1a9ec1971"
end

def install
if OS.mac?
if Hardware::CPU.physical_cpu_arm64?
bin.install "taskcluster-darwin-arm64" => "taskcluster"
else
bin.install "taskcluster-darwin-amd64" => "taskcluster"
end
elsif OS.linux?
bin.install "taskcluster-linux-amd64" => "taskcluster"
end
end

test do
system "#{bin}/taskcluster --help"
end
end

0 comments on commit fb4d69b

Please sign in to comment.