Compare commits
65 Commits
wash-0.23.
...
main
Author | SHA1 | Date |
---|---|---|
|
3fc2b9e2e4 | |
|
e67ffba0ed | |
|
9789f361eb | |
|
a3180b22f3 | |
|
e2ce4ec738 | |
|
c7690fb061 | |
|
4890512667 | |
|
43e4fd6218 | |
|
8c5b27bb44 | |
|
a7253f23ec | |
|
1008f3785d | |
|
eb372abfdf | |
|
86db35415d | |
|
5a664ba164 | |
|
bd5efb2990 | |
|
1a78429c5a | |
|
83e89da1b4 | |
|
c15596981c | |
|
aad13c548e | |
|
0df9b0e0b8 | |
|
e46e2659d4 | |
|
68b529d364 | |
|
f3e45b3eed | |
|
473b2f370e | |
|
1bdb5c1bf0 | |
|
4a2f77bee4 | |
|
f279121d86 | |
|
389a907af8 | |
|
85feca557a | |
|
8b7f6bcdeb | |
|
f0b6d59cb1 | |
|
050facd028 | |
|
4218d30809 | |
|
8d4ab709f2 | |
|
bed723bca9 | |
|
0b6836a1c1 | |
|
270c695b04 | |
|
a13f019112 | |
|
c964d7afc2 | |
|
64f1d33f7f | |
|
3aff1b2068 | |
|
5b157790b7 | |
|
74b501632b | |
|
fcf9046e3f | |
|
51343cb9e8 | |
|
e9afb05ac0 | |
|
f6a92c0297 | |
|
5684b65562 | |
|
d9cd7f8d71 | |
|
a7d784e8b6 | |
|
601e4fd790 | |
|
9a21398d13 | |
|
4b4d18c038 | |
|
5f56385377 | |
|
85c6584f31 | |
|
d1656bb01a | |
|
b8ecff13b7 | |
|
30b69a7b66 | |
|
6f0b00abed | |
|
af5139e62b | |
|
5fb317d972 | |
|
0d437bb3d2 | |
|
c2b96156ab | |
|
d193596330 | |
|
65572e7997 |
|
@ -0,0 +1,2 @@
|
||||||
|
# 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-12]
|
os: [ubuntu-22.04, macos-13]
|
||||||
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@v3
|
uses: actions/cache@v4
|
||||||
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
|
- run: brew test-bot --only-formulae --skip-checksum-only-audit
|
||||||
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
|
name: "bottles_${{ matrix.os }}"
|
||||||
path: "*.bottle.*"
|
path: "*.bottle.*"
|
||||||
|
|
|
@ -1,29 +1,96 @@
|
||||||
name: brew formula update
|
name: brew formula update
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
repository_dispatch:
|
||||||
|
types: [brew-formula-update]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
wash_version:
|
tag_prefix:
|
||||||
description: "Version of wash, without the `v`, to release to homebrew"
|
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
|
required: true
|
||||||
default: "0.18.0"
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-release:
|
update-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Prepare Formula
|
|
||||||
env:
|
|
||||||
WASMCLOUD_URL: https://github.com/wasmCloud/wash/archive/v${{ inputs.wash_version }}.tar.gz
|
|
||||||
run: |
|
|
||||||
wasmcloud_url=$WASMCLOUD_URL
|
|
||||||
wasmcloud_sha=$(curl -sL $WASMCLOUD_URL | shasum -a 256 | cut -d ' ' -f 1)
|
|
||||||
|
|
||||||
cat ./template/wash.txt | sed "s|WASMCLOUD_URL|$wasmcloud_url|" | sed "s|WASMCLOUD_SHA|$wasmcloud_sha|" > Formula/wash.rb
|
# This is needed by Goreleaser to build the placeholder Go binary.
|
||||||
- name: Create Pull Request
|
- name: Set up Go
|
||||||
uses: peter-evans/create-pull-request@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
commit-message: bump wash to v${{ inputs.wash_version }}
|
go-version: 1.21
|
||||||
title: wash v${{ inputs.wash_version }}
|
|
||||||
body: This is the release of wash v${{ inputs.wash_version }}. Once tests pass properly, add the `pr-pull` label to this PR to release.
|
- name: Set Variables
|
||||||
branch: release/v${{ inputs.wash_version }}
|
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
|
signoff: true
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
# Goreleaser output directory
|
||||||
|
dist/
|
||||||
|
# Temporary files for update pipeline
|
||||||
|
tmp/
|
|
@ -0,0 +1,43 @@
|
||||||
|
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
|
|
@ -0,0 +1,25 @@
|
||||||
|
#!/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,24 +1,59 @@
|
||||||
|
# typed: false
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||||
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/"
|
||||||
url "https://github.com/wasmCloud/wash/archive/v0.21.1.tar.gz"
|
version "0.42.0"
|
||||||
sha256 "e8ad9b215780c76447f124310e7aba6c10b42bd24a84c80b0de54fd0fffd9324"
|
|
||||||
license "Apache-2.0"
|
license "Apache-2.0"
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
root_url "https://github.com/wasmCloud/homebrew-wasmcloud/releases/download/wash-0.21.1"
|
root_url "https://github.com/wasmCloud/homebrew-wasmcloud/releases/download/wash-0.42.0"
|
||||||
sha256 cellar: :any_skip_relocation, monterey: "427986add04b16c4376674c1c195ba96a8cb30774ad6c0c6bd35ee4e25ecf490"
|
sha256 cellar: :any_skip_relocation, ventura: "d8287b7fc6d37c2b51d09d7b4ed8378453cb3ac8e4664ed4fc425f3d6c66e9e1"
|
||||||
sha256 cellar: :any_skip_relocation, x86_64_linux: "bf42e42efe71641ec4db79805303cc78fbea4c2473d5775bf90d1d6292f0bebe"
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "4618a6f060b64c3c8b284ff5c05f1dc7a363f32c23ab6f2d84f0702ee63b7ddb"
|
||||||
end
|
end
|
||||||
|
|
||||||
depends_on "rust"
|
on_macos do
|
||||||
|
on_intel do
|
||||||
on_linux do
|
url "https://github.com/wasmCloud/wasmCloud/releases/download/wash-v0.42.0/wash-x86_64-apple-darwin"
|
||||||
depends_on "zlib"
|
sha256 "7fdb4f898035e91940ab442cce9f6bc2380d8aecee6e75c0e988e095c3f51c9f"
|
||||||
end
|
|
||||||
|
|
||||||
def install
|
def install
|
||||||
system "cargo", "install", *std_cargo_args
|
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
|
||||||
|
|
||||||
|
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"
|
||||||
|
|
||||||
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
test do
|
test do
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
class Wasmcloud < Formula
|
class Wasmcloud < Formula
|
||||||
desc "Secure, distributed, WebAssembly actor model runtime for everywhere"
|
desc "Secure, distributed, WebAssembly actor model runtime for everywhere"
|
||||||
homepage "https://wasmcloud.dev"
|
homepage "https://wasmcloud.dev"
|
||||||
url "https://github.com/wasmCloud/wasmCloud/archive/v0.18.2.tar.gz"
|
url "https://github.com/wasmCloud/wasmCloud/archive/refs/tags/v0.18.2.tar.gz"
|
||||||
sha256 "6e393db103047909ee5295abbf95d460614b1a4dbca53fc9dda305451c7b1844"
|
sha256 "6e393db103047909ee5295abbf95d460614b1a4dbca53fc9dda305451c7b1844"
|
||||||
license "Apache-2.0"
|
license "Apache-2.0"
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
root_url "https://github.com/wasmCloud/homebrew-wasmcloud/releases/download/wasmcloud-0.18.2"
|
root_url "https://github.com/wasmCloud/homebrew-wasmcloud/releases/download/wasmcloud-0.18.2"
|
||||||
rebuild 3
|
rebuild 4
|
||||||
sha256 cellar: :any_skip_relocation, big_sur: "1241173c64d48a0c4d1ea518294b745e2529696c76e054b68cd5f10b0029121c"
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "82d2c88138228b6eedcdd4603171720b87538c0c28f2c00293e044f9848d59bd"
|
||||||
sha256 cellar: :any_skip_relocation, x86_64_linux: "361e620a885d228b62fdff23583d95064674bb6f0214061610839fcd4a68791e"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
depends_on "rust" => :build
|
depends_on "rust" => :build
|
||||||
|
|
Loading…
Reference in New Issue