-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcargo-hack.rb
36 lines (33 loc) · 1.34 KB
/
cargo-hack.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# SPDX-License-Identifier: Apache-2.0 OR MIT
# This file is @generated by formula.sh.
# It is not intended for manual editing.
class CargoHack < Formula
desc "Cargo subcommand for testing and continuous integration"
homepage "https://github.com/taiki-e/cargo-hack"
version "0.6.35"
license any_of: ["Apache-2.0", "MIT"]
on_macos do
if Hardware::CPU.arm?
url "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.35/cargo-hack-aarch64-apple-darwin.tar.gz"
sha256 "4a147720e1ab3ef295af88d6c26781999b2c23bd6d40f9f7ddad7cf2e68441ed"
else
url "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.35/cargo-hack-x86_64-apple-darwin.tar.gz"
sha256 "04a5849fe5d8da9f41cb9a784c0a3f9a4c572db6dfcb2bd585da565cba51b5f2"
end
end
on_linux do
if Hardware::CPU.arm?
url "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.35/cargo-hack-aarch64-unknown-linux-musl.tar.gz"
sha256 "917a14465547ca09b7e0872ca2532e877c5a2ed1f919bc52ff297d812ee34012"
else
url "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.35/cargo-hack-x86_64-unknown-linux-musl.tar.gz"
sha256 "eff70993a6da63125e378ff37b029e8ec3df738d8f52e100a003d0f1bb999a46"
end
end
def install
bin.install "cargo-hack"
end
test do
system "#{bin}/cargo-hack", "hack", "--version"
end
end