Compare commits

..

No commits in common. "main" and "wash-0.28.0" have entirely different histories.

5 changed files with 34 additions and 41 deletions

2
.github/CODEOWNERS vendored
View File

@ -1,2 +0,0 @@
# wasmCloud CI maintainers
* @wasmCloud/ci-maintainers

View File

@ -21,7 +21,7 @@ jobs:
HOMEBREW_GITHUB_PACKAGES_USER: ${{ github.actor }}
HOMEBREW_NO_INSTALL_FROM_API: 1
PULL_REQUEST: ${{ github.event.pull_request.number }}
run: brew pr-pull --debug --tap="$GITHUB_REPOSITORY" "$PULL_REQUEST"
run: brew pr-pull --debug --tap=$GITHUB_REPOSITORY $PULL_REQUEST
- name: Push commits
uses: Homebrew/actions/git-try-push@master
@ -33,4 +33,4 @@ jobs:
if: github.event.pull_request.head.repo.fork == false
env:
BRANCH: ${{ github.event.pull_request.head.ref }}
run: git push --delete origin "$BRANCH"
run: git push --delete origin $BRANCH

View File

@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-13]
os: [ubuntu-22.04, macos-12]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Homebrew
@ -20,7 +20,7 @@ jobs:
- name: Cache Homebrew Bundler RubyGems
id: cache
uses: actions/cache@v4
uses: actions/cache@v3
with:
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
@ -36,12 +36,12 @@ jobs:
- run: brew test-bot --only-tap-syntax
- run: brew test-bot --only-formulae --skip-checksum-only-audit
- run: brew test-bot --only-formulae
if: github.event_name == 'pull_request'
- name: Upload bottles as artifact
if: always() && github.event_name == 'pull_request'
uses: actions/upload-artifact@main
with:
name: "bottles_${{ matrix.os }}"
name: bottles
path: "*.bottle.*"

View File

@ -6,12 +6,12 @@ on:
workflow_dispatch:
inputs:
tag_prefix:
description: 'Prefix for the release tag to pull from (i.e. wash)'
default: 'wash'
description: "Prefix for the release tag to pull from (i.e. wash-cli)"
default: "wash-cli"
required: false
type: string
tag_version:
description: 'Tag to pull'
description: "Tag to pull"
required: true
type: string
@ -23,20 +23,20 @@ jobs:
# This is needed by Goreleaser to build the placeholder Go binary.
- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Set Variables
if: github.event_name == 'workflow_dispatch'
run: |
echo "input_tag=${{ github.event.inputs.tag_version }}" >> "$GITHUB_ENV"
echo "input_prefix=${{ github.event.inputs.tag_prefix }}" >> "$GITHUB_ENV"
echo "input_tag=${{ github.event.inputs.tag_version }}" >> $GITHUB_ENV
echo "input_prefix=${{ github.event.inputs.tag_prefix }}" >> $GITHUB_ENV
- name: Set Variables
if: github.event_name == 'repository_dispatch'
run: |
echo "input_tag=${{ github.event.client_payload.tag_version }}" >> "$GITHUB_ENV"
echo "input_prefix=${{ github.event.client_payload.tag_prefix }}" >> "$GITHUB_ENV"
echo "input_tag=${{ github.event.client_payload.tag_version }}" >> $GITHUB_ENV
echo "input_prefix=${{ github.event.client_payload.tag_prefix }}" >> $GITHUB_ENV
- name: Normalize inputs for pipeline use
uses: actions/github-script@v7
@ -85,7 +85,7 @@ jobs:
cp dist/homebrew/Formula/wash.rb Formula/wash.rb
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v5
with:
commit-message: bump wash to ${{ steps.normalize_inputs.outputs.tag_with_v }}
title: wash ${{ steps.normalize_inputs.outputs.tag_with_v }}

View File

@ -5,27 +5,26 @@
class Wash < Formula
desc "WAsmcloud SHell - a comprehensive command-line tool for wasmCloud development"
homepage "https://wasmcloud.com/"
version "0.42.0"
version "0.27.0"
license "Apache-2.0"
bottle do
root_url "https://github.com/wasmCloud/homebrew-wasmcloud/releases/download/wash-0.42.0"
sha256 cellar: :any_skip_relocation, ventura: "d8287b7fc6d37c2b51d09d7b4ed8378453cb3ac8e4664ed4fc425f3d6c66e9e1"
sha256 cellar: :any_skip_relocation, x86_64_linux: "4618a6f060b64c3c8b284ff5c05f1dc7a363f32c23ab6f2d84f0702ee63b7ddb"
root_url "https://github.com/wasmCloud/homebrew-wasmcloud/releases/download/wash-0.27.0"
sha256 cellar: :any_skip_relocation, x86_64_linux: "32d8fcc455fbfddbcd942033d3ab1a1f417cdf8872fca76ecfd5c5549b8a5da7"
end
on_macos do
on_intel do
url "https://github.com/wasmCloud/wasmCloud/releases/download/wash-v0.42.0/wash-x86_64-apple-darwin"
sha256 "7fdb4f898035e91940ab442cce9f6bc2380d8aecee6e75c0e988e095c3f51c9f"
if Hardware::CPU.intel?
url "https://github.com/wasmCloud/wasmCloud/releases/download/wash-cli-v0.27.0/wash-x86_64-apple-darwin"
sha256 "6011e77561738042bf0cbc71cf2cd4235c2592182a2ddd0277eabca677c25780"
def install
bin.install "wash-x86_64-apple-darwin" => "wash"
end
end
on_arm do
url "https://github.com/wasmCloud/wasmCloud/releases/download/wash-v0.42.0/wash-aarch64-apple-darwin"
sha256 "ab9183194dd29d6eba77692bc017cbc2ea9108b734ddc19d51e74d8bf556aeec"
if Hardware::CPU.arm?
url "https://github.com/wasmCloud/wasmCloud/releases/download/wash-cli-v0.27.0/wash-aarch64-apple-darwin"
sha256 "b239df01fb8cca95e575f949b9a6ed127b73a6204fc5305cb6a89a32cfc74bbc"
def install
bin.install "wash-aarch64-apple-darwin" => "wash"
@ -34,27 +33,23 @@ class Wash < Formula
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/wasmCloud/wasmCloud/releases/download/wash-v0.42.0/wash-x86_64-unknown-linux-musl"
sha256 "23e44f345ae314549ba04123b86eb63fc37c1026f43b8c08a7c9b618a80cba5c"
if Hardware::CPU.intel?
url "https://github.com/wasmCloud/wasmCloud/releases/download/wash-cli-v0.27.0/wash-x86_64-unknown-linux-musl"
sha256 "63b13e6d27ddcca6e631c9c22c88fbc850b2918d00085f46d35bceb5d3a63de6"
def install
bin.install "wash-x86_64-unknown-linux-musl" => "wash"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/wasmCloud/wasmCloud/releases/download/wash-v0.42.0/wash-aarch64-unknown-linux-musl"
sha256 "058d59cd5f181ada6de763e82ab935e1ae0db943b6df607cef3cdb647d175029"
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/wasmCloud/wasmCloud/releases/download/wash-cli-v0.27.0/wash-aarch64-unknown-linux-musl"
sha256 "72ce5bf6997fef3b66bffd2424cc4914ba77d04d9301fcaa0eca1ee4109be81b"
def install
bin.install "wash-aarch64-unknown-linux-musl" => "wash"
end
end
end
end
test do
system "#{bin}/wash", "-V"