Compare commits
No commits in common. "main" and "wash-0.17.4" have entirely different histories.
main
...
wash-0.17.
|
@ -1,2 +0,0 @@
|
|||
# wasmCloud CI maintainers
|
||||
* @wasmCloud/ci-maintainers
|
|
@ -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
|
||||
|
|
|
@ -4,14 +4,12 @@ on:
|
|||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
test-bot:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-22.04, macos-13]
|
||||
os: [ubuntu-22.04, macos-11]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Set up Homebrew
|
||||
|
@ -20,7 +18,7 @@ jobs:
|
|||
|
||||
- name: Cache Homebrew Bundler RubyGems
|
||||
id: cache
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
|
||||
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
|
||||
|
@ -36,12 +34,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.*"
|
||||
|
|
|
@ -1,96 +0,0 @@
|
|||
name: brew formula update
|
||||
|
||||
on:
|
||||
repository_dispatch:
|
||||
types: [brew-formula-update]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag_prefix:
|
||||
description: 'Prefix for the release tag to pull from (i.e. wash)'
|
||||
default: 'wash'
|
||||
required: false
|
||||
type: string
|
||||
tag_version:
|
||||
description: 'Tag to pull'
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
update-release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
# This is needed by Goreleaser to build the placeholder Go binary.
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
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"
|
||||
- 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
|
||||
uses: actions/github-script@v7
|
||||
id: normalize_inputs
|
||||
env:
|
||||
input_tag: ${{ env.input_tag }}
|
||||
input_prefix: ${{ env.input_prefix }}
|
||||
with:
|
||||
script: |
|
||||
const { input_tag, input_prefix } = process.env
|
||||
const tag_no_v = input_tag.replaceAll('v', '')
|
||||
const tag_with_v = 'v' + tag_no_v
|
||||
const prefix = input_prefix.replace(/^-+/g, '').replace(/-+$/g, '')
|
||||
const release_name = prefix + '-' + tag_with_v
|
||||
core.setOutput('tag_no_v', tag_no_v)
|
||||
core.setOutput('tag_with_v', tag_with_v)
|
||||
core.setOutput('release_name', release_name)
|
||||
|
||||
- name: Download release artifacts
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
gh -R wasmcloud/wasmcloud release download ${{ steps.normalize_inputs.outputs.release_name }} -D tmp/ -p '*apple-darwin*' -p '*unknown-linux*'
|
||||
|
||||
- name: Setup placeholder files for Goreleaser
|
||||
shell: bash
|
||||
run: |
|
||||
cat <<EOF > tmp/main.go
|
||||
package main
|
||||
func main() {}
|
||||
EOF
|
||||
|
||||
- name: Run Goreleaser
|
||||
uses: goreleaser/goreleaser-action@v5
|
||||
with:
|
||||
distribution: goreleaser
|
||||
version: latest
|
||||
args: release --clean --skip validate
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
RELEASE_NAME: ${{ steps.normalize_inputs.outputs.release_name }}
|
||||
GORELEASER_CURRENT_TAG: ${{ steps.normalize_inputs.outputs.tag_no_v }}
|
||||
|
||||
- name: Copy the new Formula over
|
||||
run: |
|
||||
cp dist/homebrew/Formula/wash.rb Formula/wash.rb
|
||||
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v6
|
||||
with:
|
||||
commit-message: bump wash to ${{ steps.normalize_inputs.outputs.tag_with_v }}
|
||||
title: wash ${{ steps.normalize_inputs.outputs.tag_with_v }}
|
||||
body: This is the release of wash ${{ steps.normalize_inputs.outputs.tag_with_v }}. Once tests pass properly, add the `pr-pull` label to this PR to release.
|
||||
branch: release/${{ steps.normalize_inputs.outputs.release_name }}
|
||||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
||||
committer: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
||||
signoff: true
|
|
@ -1,4 +0,0 @@
|
|||
# Goreleaser output directory
|
||||
dist/
|
||||
# Temporary files for update pipeline
|
||||
tmp/
|
|
@ -1,43 +0,0 @@
|
|||
project_name: wash
|
||||
|
||||
builds:
|
||||
- main: tmp/main.go
|
||||
goos:
|
||||
- linux
|
||||
- darwin
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
binary: wash
|
||||
hooks:
|
||||
post:
|
||||
- ./.goreleaser_hook.sh {{ .Arch }} {{ .Os }} {{ .Path }}
|
||||
|
||||
archives:
|
||||
- format: binary
|
||||
|
||||
brews:
|
||||
- name: wash
|
||||
goamd64: v1
|
||||
url_template: https://github.com/wasmCloud/wasmCloud/releases/download/{{ indexOrDefault .Env "RELEASE_NAME" "" }}/{{ .Binary }}-{{ if eq .Arch "arm64" }}aarch64{{ else }}x86_64{{ end }}-{{ if eq .Os "darwin" }}apple-darwin{{ else }}unknown-linux-musl{{ end }}
|
||||
license: "Apache-2.0"
|
||||
folder: Formula
|
||||
homepage: "https://wasmcloud.com/"
|
||||
description: "WAsmcloud SHell - a comprehensive command-line tool for wasmCloud development"
|
||||
skip_upload: true
|
||||
test: |
|
||||
system "#{bin}/wash", "-V"
|
||||
install: |
|
||||
bin.install "{{ .Binary }}-{{ if eq .Arch "arm64" }}aarch64{{ else }}x86_64{{ end }}-{{ if eq .Os "darwin" }}apple-darwin{{ else }}unknown-linux-musl{{ end }}" => "{{ .Binary }}"
|
||||
repository:
|
||||
owner: wasmCloud
|
||||
name: homebrew-wasmcloud
|
||||
|
||||
checksum:
|
||||
name_template: "checksums.txt"
|
||||
|
||||
changelog:
|
||||
skip: true
|
||||
|
||||
release:
|
||||
disable: true
|
|
@ -1,25 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
go_arch=$1
|
||||
go_os=$2
|
||||
output_path=$3
|
||||
|
||||
# Make Go -> Rust arch/os mapping
|
||||
case $go_arch in
|
||||
amd64) rust_arch='x86_64' ;;
|
||||
arm64) rust_arch='aarch64' ;;
|
||||
*) echo "unknown arch: $go_arch" && exit 1 ;;
|
||||
esac
|
||||
case $go_os in
|
||||
linux) rust_os='unknown-linux-musl' ;;
|
||||
darwin) rust_os='apple-darwin' ;;
|
||||
windows) rust_os='windows' ;;
|
||||
*) echo "unknown os: $go_os" && exit 1 ;;
|
||||
esac
|
||||
|
||||
# This deletes the output path before we attempt to place the Rust binaries there,
|
||||
# so that in the case we fail to download or `find` the Rust binaries below, the
|
||||
# pipeline will fail and we can investigate.
|
||||
rm "${output_path}"
|
||||
# Find the artifacts in tmp/ and move them over to dist/ where the Go binaries would be.
|
||||
find tmp -type f -name "*${rust_arch}-${rust_os}*" -exec mv {} "${output_path}" \;
|
|
@ -1,59 +1,24 @@
|
|||
# typed: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
class Wash < Formula
|
||||
desc "WAsmcloud SHell - a comprehensive command-line tool for wasmCloud development"
|
||||
homepage "https://wasmcloud.com/"
|
||||
version "0.42.0"
|
||||
homepage "https://wasmcloud.com"
|
||||
url "https://github.com/wasmCloud/wash/archive/v0.17.3.tar.gz"
|
||||
sha256 "9a5404ef46a38fd531d4cf65569521317b90114e96348e43cf90ec63252214bd"
|
||||
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.17.3"
|
||||
sha256 cellar: :any_skip_relocation, big_sur: "5bf9a9a6443770c07be720d9bbfd82f11f56800ccbca0ff63ee9b2e36d264cf3"
|
||||
sha256 cellar: :any_skip_relocation, x86_64_linux: "c87fd993ac85a0a64c3472a4ecf11a0f308fa30d88410aaf34e622efc684672a"
|
||||
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"
|
||||
|
||||
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"
|
||||
|
||||
def install
|
||||
bin.install "wash-aarch64-apple-darwin" => "wash"
|
||||
end
|
||||
end
|
||||
end
|
||||
depends_on "rust"
|
||||
|
||||
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"
|
||||
depends_on "zlib"
|
||||
end
|
||||
|
||||
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"
|
||||
|
||||
def install
|
||||
bin.install "wash-aarch64-unknown-linux-musl" => "wash"
|
||||
end
|
||||
end
|
||||
end
|
||||
def install
|
||||
system "cargo", "install", *std_cargo_args
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
|
@ -1,14 +1,15 @@
|
|||
class Wasmcloud < Formula
|
||||
desc "Secure, distributed, WebAssembly actor model runtime for everywhere"
|
||||
homepage "https://wasmcloud.dev"
|
||||
url "https://github.com/wasmCloud/wasmCloud/archive/refs/tags/v0.18.2.tar.gz"
|
||||
url "https://github.com/wasmCloud/wasmCloud/archive/v0.18.2.tar.gz"
|
||||
sha256 "6e393db103047909ee5295abbf95d460614b1a4dbca53fc9dda305451c7b1844"
|
||||
license "Apache-2.0"
|
||||
|
||||
bottle do
|
||||
root_url "https://github.com/wasmCloud/homebrew-wasmcloud/releases/download/wasmcloud-0.18.2"
|
||||
rebuild 4
|
||||
sha256 cellar: :any_skip_relocation, x86_64_linux: "82d2c88138228b6eedcdd4603171720b87538c0c28f2c00293e044f9848d59bd"
|
||||
rebuild 3
|
||||
sha256 cellar: :any_skip_relocation, big_sur: "1241173c64d48a0c4d1ea518294b745e2529696c76e054b68cd5f10b0029121c"
|
||||
sha256 cellar: :any_skip_relocation, x86_64_linux: "361e620a885d228b62fdff23583d95064674bb6f0214061610839fcd4a68791e"
|
||||
end
|
||||
|
||||
depends_on "rust" => :build
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
class Wash < Formula
|
||||
desc "WAsmcloud SHell - a comprehensive command-line tool for wasmCloud development"
|
||||
homepage "https://wasmcloud.com"
|
||||
url "WASMCLOUD_URL"
|
||||
sha256 "WASMCLOUD_SHA"
|
||||
license "Apache-2.0"
|
||||
|
||||
bottle do
|
||||
root_url "https://github.com/wasmCloud/homebrew-wasmcloud/releases/download/wash-0.17.4"
|
||||
sha256 cellar: :any_skip_relocation, big_sur: "6779804593d697ac4b43c501c45ebe04ce3f42cac1e2f9f89f481d20ac5f9dac"
|
||||
sha256 cellar: :any_skip_relocation, x86_64_linux: "5c202386e8f361a790f5416193b38888ab18453826f52db74d691c09afbe3e3f"
|
||||
end
|
||||
|
||||
depends_on "rust"
|
||||
|
||||
on_linux do
|
||||
depends_on "zlib"
|
||||
end
|
||||
|
||||
def install
|
||||
system "cargo", "install", *std_cargo_args
|
||||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/wash", "-V"
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue