-
Notifications
You must be signed in to change notification settings - Fork 163
/
actionlint.rb
71 lines (62 loc) · 2.13 KB
/
actionlint.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Actionlint < Formula
desc "Static checker for GitHub Actions workflow files"
homepage "https://github.com/rhysd/actionlint#readme"
version "1.7.6"
license "MIT"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/rhysd/actionlint/releases/download/v1.7.6/actionlint_1.7.6_darwin_amd64.tar.gz"
sha256 "a57e9862e6b4f6b8398ff134f0e07c9f0047142fb9ea8e7cdc4fee05d24e89f4"
def install
bin.install "actionlint"
man1.install "man/actionlint.1"
end
end
if Hardware::CPU.arm?
url "https://github.com/rhysd/actionlint/releases/download/v1.7.6/actionlint_1.7.6_darwin_arm64.tar.gz"
sha256 "9a7c9cb2b627bb137ef68742eead2dd5b78f3ddc44876e84c37d323ba28b4710"
def install
bin.install "actionlint"
man1.install "man/actionlint.1"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/rhysd/actionlint/releases/download/v1.7.6/actionlint_1.7.6_linux_amd64.tar.gz"
sha256 "5d1a70d9de15fee5371e6f9e20cc29b284e814d6ee1b882f9749e91caf716eba"
def install
bin.install "actionlint"
man1.install "man/actionlint.1"
end
end
end
if Hardware::CPU.arm?
if !Hardware::CPU.is_64_bit?
url "https://github.com/rhysd/actionlint/releases/download/v1.7.6/actionlint_1.7.6_linux_armv6.tar.gz"
sha256 "e46a7cd287185f0e9615384db087ceea5d3b276addcd9d74d89d2a9c1dc3ee8f"
def install
bin.install "actionlint"
man1.install "man/actionlint.1"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/rhysd/actionlint/releases/download/v1.7.6/actionlint_1.7.6_linux_arm64.tar.gz"
sha256 "5d8b6b5bf0bc7bbe69a5ea779329eb7825c768248dd0da979d98e39d924abc7f"
def install
bin.install "actionlint"
man1.install "man/actionlint.1"
end
end
end
end
test do
system "#{bin}/actionlint -version"
end
end