-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcargo-llvm-cov.rb
36 lines (33 loc) · 1.41 KB
/
cargo-llvm-cov.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 CargoLlvmCov < Formula
desc "Cargo subcommand for LLVM source-based code coverage (-C instrument-coverage)"
homepage "https://github.com/taiki-e/cargo-llvm-cov"
version "0.6.16"
license any_of: ["Apache-2.0", "MIT"]
on_macos do
if Hardware::CPU.arm?
url "https://github.com/taiki-e/cargo-llvm-cov/releases/download/v0.6.16/cargo-llvm-cov-aarch64-apple-darwin.tar.gz"
sha256 "f1ab5f573d6c49d463f8117501462e2a6a0cead9124b68b4a2fbd8a3f5aad7ba"
else
url "https://github.com/taiki-e/cargo-llvm-cov/releases/download/v0.6.16/cargo-llvm-cov-x86_64-apple-darwin.tar.gz"
sha256 "337c619978c7595113353db5775cf953052aba85746f884085e31d2757a03e87"
end
end
on_linux do
if Hardware::CPU.arm?
url "https://github.com/taiki-e/cargo-llvm-cov/releases/download/v0.6.16/cargo-llvm-cov-aarch64-unknown-linux-musl.tar.gz"
sha256 "02a3a2d9c5de145319bd01f7ae63b6a76f0b57229887859a79b9fc0f57978b33"
else
url "https://github.com/taiki-e/cargo-llvm-cov/releases/download/v0.6.16/cargo-llvm-cov-x86_64-unknown-linux-musl.tar.gz"
sha256 "2145d09b8263ba8bdf32f362919e0e2bb8170404bf6edd380b7b442f9017df58"
end
end
def install
bin.install "cargo-llvm-cov"
end
test do
system "#{bin}/cargo-llvm-cov", "llvm-cov", "--version"
end
end