Compare commits
No commits in common. "main" and "wash-0.26.0" have entirely different histories.
main
...
wash-0.26.
|
@ -1,2 +0,0 @@
|
||||||
# wasmCloud CI maintainers
|
|
||||||
* @wasmCloud/ci-maintainers
|
|
|
@ -21,7 +21,7 @@ jobs:
|
||||||
HOMEBREW_GITHUB_PACKAGES_USER: ${{ github.actor }}
|
HOMEBREW_GITHUB_PACKAGES_USER: ${{ github.actor }}
|
||||||
HOMEBREW_NO_INSTALL_FROM_API: 1
|
HOMEBREW_NO_INSTALL_FROM_API: 1
|
||||||
PULL_REQUEST: ${{ github.event.pull_request.number }}
|
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
|
- name: Push commits
|
||||||
uses: Homebrew/actions/git-try-push@master
|
uses: Homebrew/actions/git-try-push@master
|
||||||
|
@ -33,4 +33,4 @@ jobs:
|
||||||
if: github.event.pull_request.head.repo.fork == false
|
if: github.event.pull_request.head.repo.fork == false
|
||||||
env:
|
env:
|
||||||
BRANCH: ${{ github.event.pull_request.head.ref }}
|
BRANCH: ${{ github.event.pull_request.head.ref }}
|
||||||
run: git push --delete origin "$BRANCH"
|
run: git push --delete origin $BRANCH
|
||||||
|
|
|
@ -11,7 +11,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-22.04, macos-13]
|
os: [ubuntu-22.04, macos-12]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Homebrew
|
- name: Set up Homebrew
|
||||||
|
@ -20,7 +20,7 @@ jobs:
|
||||||
|
|
||||||
- name: Cache Homebrew Bundler RubyGems
|
- name: Cache Homebrew Bundler RubyGems
|
||||||
id: cache
|
id: cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
|
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
|
||||||
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
|
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-tap-syntax
|
||||||
|
|
||||||
- run: brew test-bot --only-formulae --skip-checksum-only-audit
|
- run: brew test-bot --only-formulae
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
|
|
||||||
- name: Upload bottles as artifact
|
- name: Upload bottles as artifact
|
||||||
if: always() && github.event_name == 'pull_request'
|
if: always() && github.event_name == 'pull_request'
|
||||||
uses: actions/upload-artifact@main
|
uses: actions/upload-artifact@main
|
||||||
with:
|
with:
|
||||||
name: "bottles_${{ matrix.os }}"
|
name: bottles
|
||||||
path: "*.bottle.*"
|
path: "*.bottle.*"
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
name: brew formula update
|
name: brew formula update
|
||||||
|
|
||||||
on:
|
on:
|
||||||
repository_dispatch:
|
|
||||||
types: [brew-formula-update]
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
tag_prefix:
|
tag_prefix:
|
||||||
description: 'Prefix for the release tag to pull from (i.e. wash)'
|
description: "Prefix for the release tag to pull from (i.e. wash-cli)"
|
||||||
default: 'wash'
|
default: "wash-cli"
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
tag_version:
|
tag_version:
|
||||||
description: 'Tag to pull'
|
description: "Tag to pull"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
@ -23,30 +21,17 @@ jobs:
|
||||||
|
|
||||||
# This is needed by Goreleaser to build the placeholder Go binary.
|
# This is needed by Goreleaser to build the placeholder Go binary.
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: 1.21
|
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"
|
|
||||||
- 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"
|
|
||||||
|
|
||||||
- name: Normalize inputs for pipeline use
|
- name: Normalize inputs for pipeline use
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
id: normalize_inputs
|
id: normalize_inputs
|
||||||
env:
|
|
||||||
input_tag: ${{ env.input_tag }}
|
|
||||||
input_prefix: ${{ env.input_prefix }}
|
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const { input_tag, input_prefix } = process.env
|
const input_tag = context.payload.inputs.tag_version
|
||||||
|
const input_prefix = context.payload.inputs.tag_prefix
|
||||||
const tag_no_v = input_tag.replaceAll('v', '')
|
const tag_no_v = input_tag.replaceAll('v', '')
|
||||||
const tag_with_v = 'v' + tag_no_v
|
const tag_with_v = 'v' + tag_no_v
|
||||||
const prefix = input_prefix.replace(/^-+/g, '').replace(/-+$/g, '')
|
const prefix = input_prefix.replace(/^-+/g, '').replace(/-+$/g, '')
|
||||||
|
@ -85,7 +70,7 @@ jobs:
|
||||||
cp dist/homebrew/Formula/wash.rb Formula/wash.rb
|
cp dist/homebrew/Formula/wash.rb Formula/wash.rb
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v6
|
uses: peter-evans/create-pull-request@v5
|
||||||
with:
|
with:
|
||||||
commit-message: bump wash to ${{ steps.normalize_inputs.outputs.tag_with_v }}
|
commit-message: bump wash to ${{ steps.normalize_inputs.outputs.tag_with_v }}
|
||||||
title: wash ${{ steps.normalize_inputs.outputs.tag_with_v }}
|
title: wash ${{ steps.normalize_inputs.outputs.tag_with_v }}
|
||||||
|
|
|
@ -5,27 +5,21 @@
|
||||||
class Wash < Formula
|
class Wash < Formula
|
||||||
desc "WAsmcloud SHell - a comprehensive command-line tool for wasmCloud development"
|
desc "WAsmcloud SHell - a comprehensive command-line tool for wasmCloud development"
|
||||||
homepage "https://wasmcloud.com/"
|
homepage "https://wasmcloud.com/"
|
||||||
version "0.42.0"
|
version "0.25.0"
|
||||||
license "Apache-2.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"
|
|
||||||
end
|
|
||||||
|
|
||||||
on_macos do
|
on_macos do
|
||||||
on_intel do
|
if Hardware::CPU.intel?
|
||||||
url "https://github.com/wasmCloud/wasmCloud/releases/download/wash-v0.42.0/wash-x86_64-apple-darwin"
|
url "https://github.com/wasmCloud/wasmCloud/releases/download/wash-cli-v0.25.0/wash-x86_64-apple-darwin"
|
||||||
sha256 "7fdb4f898035e91940ab442cce9f6bc2380d8aecee6e75c0e988e095c3f51c9f"
|
sha256 "1e521278d9cefd143e19b27464ed3215c0b058170924554b77e37b9229304f17"
|
||||||
|
|
||||||
def install
|
def install
|
||||||
bin.install "wash-x86_64-apple-darwin" => "wash"
|
bin.install "wash-x86_64-apple-darwin" => "wash"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
on_arm do
|
if Hardware::CPU.arm?
|
||||||
url "https://github.com/wasmCloud/wasmCloud/releases/download/wash-v0.42.0/wash-aarch64-apple-darwin"
|
url "https://github.com/wasmCloud/wasmCloud/releases/download/wash-cli-v0.25.0/wash-aarch64-apple-darwin"
|
||||||
sha256 "ab9183194dd29d6eba77692bc017cbc2ea9108b734ddc19d51e74d8bf556aeec"
|
sha256 "20f457713e0f480623d0676c6670e473785488203739c455605600dbde097fc3"
|
||||||
|
|
||||||
def install
|
def install
|
||||||
bin.install "wash-aarch64-apple-darwin" => "wash"
|
bin.install "wash-aarch64-apple-darwin" => "wash"
|
||||||
|
@ -34,24 +28,20 @@ class Wash < Formula
|
||||||
end
|
end
|
||||||
|
|
||||||
on_linux do
|
on_linux do
|
||||||
on_intel do
|
if Hardware::CPU.intel?
|
||||||
if Hardware::CPU.is_64_bit?
|
url "https://github.com/wasmCloud/wasmCloud/releases/download/wash-cli-v0.25.0/wash-x86_64-unknown-linux-musl"
|
||||||
url "https://github.com/wasmCloud/wasmCloud/releases/download/wash-v0.42.0/wash-x86_64-unknown-linux-musl"
|
sha256 "0e352f807e245231dc166fa57b825e6651837c58df330ce044b95b3656c874b6"
|
||||||
sha256 "23e44f345ae314549ba04123b86eb63fc37c1026f43b8c08a7c9b618a80cba5c"
|
|
||||||
|
|
||||||
def install
|
def install
|
||||||
bin.install "wash-x86_64-unknown-linux-musl" => "wash"
|
bin.install "wash-x86_64-unknown-linux-musl" => "wash"
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
on_arm do
|
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
|
||||||
if Hardware::CPU.is_64_bit?
|
url "https://github.com/wasmCloud/wasmCloud/releases/download/wash-cli-v0.25.0/wash-aarch64-unknown-linux-musl"
|
||||||
url "https://github.com/wasmCloud/wasmCloud/releases/download/wash-v0.42.0/wash-aarch64-unknown-linux-musl"
|
sha256 "0139bbefacbf0b87dbdae4f65ade2b2eea125a44a998c4d64c53338251acdfaf"
|
||||||
sha256 "058d59cd5f181ada6de763e82ab935e1ae0db943b6df607cef3cdb647d175029"
|
|
||||||
|
|
||||||
def install
|
def install
|
||||||
bin.install "wash-aarch64-unknown-linux-musl" => "wash"
|
bin.install "wash-aarch64-unknown-linux-musl" => "wash"
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue