diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 47791a4..a6381b8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,8 +31,6 @@ jobs: - run: brew test-bot --only-setup - - run: brew test-bot --only-tap-syntax - - run: brew test-bot --only-formulae --root-url=https://ghcr.io/v2/replicate/tap if: github.event_name == 'pull_request' diff --git a/Casks/cog.rb b/Casks/cog.rb new file mode 100644 index 0000000..0f62c8e --- /dev/null +++ b/Casks/cog.rb @@ -0,0 +1,32 @@ +cask "cog" do + version "0.17.1" + + on_arm do + sha256 :no_check + + url "https://github.com/replicate/cog/releases/download/v0.17.1/cog_Darwin_arm64", + verified: "github.com/replicate/cog/" + end + on_intel do + sha256 :no_check + + url "https://github.com/replicate/cog/releases/download/v0.17.1/cog_Darwin_x86_64", + verified: "github.com/replicate/cog/" + end + + name "Cog" + desc "Containers for machine learning" + homepage "https://cog.run/" + + binary "cog_Darwin_#{on_intel do + "x86_64" + end + on_arm do + "arm64" + end}", target: "cog" + + postflight do + system_command "/usr/bin/xattr", + args: ["-dr", "com.apple.quarantine", "#{staged_path}/cog"] + end +end