Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update snctl to v0.18.0 #69

Merged
merged 12 commits into from
May 15, 2024
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
build:
name: Run brew test-bot
# This job runs on Linux
runs-on: macos-latest
runs-on: macos-13
steps:
- name: Checkout pulsar repo
uses: actions/checkout@v2
Expand All @@ -13,10 +13,10 @@ jobs:
run: |
set -e
ls /Applications
sudo xcode-select --switch /Applications/Xcode_13.2.1.app/Contents/Developer
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
brew update
HOMEBREW_TAP_DIR="/usr/local/Homebrew/Library/Taps/streamnative/homebrew-streamnative"
mkdir -p "${HOMEBREW_TAP_DIR}"
rm -rf "${HOMEBREW_TAP_DIR}"
ln -s "${PWD}" "${HOMEBREW_TAP_DIR}"
sudo mkdir -p "${HOMEBREW_TAP_DIR}"
sudo rm -rf "${HOMEBREW_TAP_DIR}"
sudo ln -s "${PWD}" "${HOMEBREW_TAP_DIR}"
brew test-bot
11 changes: 8 additions & 3 deletions Formula/pulsarctl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,25 @@ class Pulsarctl < Formula
license "Apache-2.0"

on_macos do
if Hardware::CPU.intel?
on_intel do
url "https://github.com/streamnative/pulsarctl/releases/download/v3.2.1.3/pulsarctl-amd64-darwin.tar.gz"
sha256 "944e0e190aa5c5c4b7a8f1020b1d2fa81755199009a71d8c1eb5c89bd30b517c"
else
end
on_arm do
url "https://github.com/streamnative/pulsarctl/releases/download/v3.2.1.3/pulsarctl-arm64-darwin.tar.gz"
sha256 "e76be082b6e1532bf04aa52f37670ac94d5d12ca0dd77474de05e488736e2e71"
end
end

on_linux do
if Hardware::CPU.intel?
on_intel do
url "https://github.com/streamnative/pulsarctl/releases/download/v3.2.1.3/pulsarctl-amd64-linux.tar.gz"
sha256 "a633252950b18f2bc995dc30d09e850f97ab30360ee7a1a4d3461c3db88642df"
end
on_arm do
url "https://github.com/streamnative/pulsarctl/releases/download/v3.2.1.3/pulsarctl-arm64-linux.tar.gz"
sha256 "a56be89a8e5ce99d9860c4944eb0896b2062034617b1575bf931d6fa28944dbc"
end
end

def install
Expand Down
38 changes: 21 additions & 17 deletions Formula/snctl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
class Snctl < Formula
desc "StreamNative Cloud CLI (snctl)"
homepage "https://streamnative.io/"
version "0.16.0"
version "0.18.0"
license "Apache-2.0"

on_macos do
if Hardware::CPU.arm?
url "https://storage.googleapis.com/downloads.streamnative.cloud/snctl/v0.16.0/snctl_0.16.0_darwin_arm64.tar.gz"
sha256 "0f613a5c471ac55dfe31c45a7fc100f783a3169b106b8d2cb3e326f3bef07c9b"
on_intel do
url "https://storage.googleapis.com/downloads.streamnative.cloud/snctl/v0.18.0/snctl_0.18.0_darwin_amd64.tar.gz"
sha256 "82fd2fbded293934018daab361c774fb79feeadc3221dc1622b66d62859fb19e"

def install
bin.install "snctl"
end
end
if Hardware::CPU.intel?
url "https://storage.googleapis.com/downloads.streamnative.cloud/snctl/v0.16.0/snctl_0.16.0_darwin_amd64.tar.gz"
sha256 "970359e250283f43e3e2c1d3a45334b738cc1061c24e4f91f40d5ef748eeed02"
on_arm do
url "https://storage.googleapis.com/downloads.streamnative.cloud/snctl/v0.18.0/snctl_0.18.0_darwin_arm64.tar.gz"
sha256 "620594400acd88e632c71ccd4b742a49e09fdb8b171b2aac005372dc834260d2"

def install
bin.install "snctl"
Expand All @@ -28,20 +28,24 @@ def install
end

on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://storage.googleapis.com/downloads.streamnative.cloud/snctl/v0.16.0/snctl_0.16.0_linux_arm64.tar.gz"
sha256 "2107e621c65dc3f81222f366acca3b1ac5ba6ecb38f8ad53d4050e6132c553c6"
on_intel do
if Hardware::CPU.is_64_bit?
url "https://storage.googleapis.com/downloads.streamnative.cloud/snctl/v0.18.0/snctl_0.18.0_linux_amd64.tar.gz"
sha256 "fe5ba9f4e190aa682e5b111bf31e2dfc0ce31b578a7e98242908f7ffb73260e0"

def install
bin.install "snctl"
def install
bin.install "snctl"
end
end
end
if Hardware::CPU.intel?
url "https://storage.googleapis.com/downloads.streamnative.cloud/snctl/v0.16.0/snctl_0.16.0_linux_amd64.tar.gz"
sha256 "0332f6e8cecf1f72ed0266e8b613ba0acad362bf3f96ad6eac31fbc9eb46890b"
on_arm do
if Hardware::CPU.is_64_bit?
url "https://storage.googleapis.com/downloads.streamnative.cloud/snctl/v0.18.0/snctl_0.18.0_linux_arm64.tar.gz"
sha256 "44f399b04da9d51afed65715c6a48071f35072bcfa6da81689d30feef3988808"

def install
bin.install "snctl"
def install
bin.install "snctl"
end
end
end
end
Expand Down
Loading