Compare commits

...

87 Commits

Author SHA1 Message Date
Brooks Townsend 3fc2b9e2e4 wash: add 0.42.0 bottle. 2025-05-31 14:43:20 +00:00
brooksmtownsend e67ffba0ed bump wash to v0.42.0
Closes #94.

Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2025-05-31 14:39:35 +00:00
Taylor Thomas 9789f361eb wash: add 0.41.0 bottle. 2025-03-24 18:06:06 +00:00
Taylor Thomas a3180b22f3 bump wash to v0.41.0
Closes #93.

Signed-off-by: Taylor Thomas <taylor@cosmonic.com>
Signed-off-by: Taylor Thomas <taylor@oftaylor.com>
2025-03-24 18:02:35 +00:00
Brooks Townsend e2ce4ec738 wash: add 0.40.0 bottle. 2025-03-10 18:03:31 +00:00
brooksmtownsend c7690fb061 bump wash to v0.40.0
Closes #92.

Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2025-03-10 18:00:01 +00:00
Brooks Townsend 4890512667 feat: remove -cli suffix w/ new package
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
2025-03-10 13:30:59 -04:00
Brooks Townsend 43e4fd6218 wash: add 0.39.0 bottle. 2025-02-25 16:20:34 +00:00
brooksmtownsend 8c5b27bb44 bump wash to v0.39.0
Closes #90.

Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2025-02-25 16:17:08 +00:00
Taylor Thomas a7253f23ec wash: add 0.38.0 bottle. 2025-01-29 19:56:01 +00:00
thomastaylor312 1008f3785d bump wash to v0.38.0
Closes #89.

Signed-off-by: thomastaylor312 <thomastaylor312@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
Signed-off-by: Taylor Thomas <taylor@oftaylor.com>
2025-01-29 19:52:40 +00:00
Brooks Townsend eb372abfdf wash: add 0.38.0 bottle. 2025-01-27 18:01:00 +00:00
brooksmtownsend 86db35415d bump wash to v0.38.0
Closes #86.

Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2025-01-27 17:57:33 +00:00
Brooks Townsend 5a664ba164 ci(tests): update runner to macos-13
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
2025-01-27 12:48:09 -05:00
Joonas Bergius bd5efb2990 wash: add 0.37.0 bottle. 2024-11-12 21:58:19 +00:00
brooksmtownsend 1a78429c5a bump wash to v0.37.0
Closes #84.

Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Joonas Bergius <joonas@cosmonic.com>
Signed-off-by: Joonas Bergius <19793+joonas@users.noreply.github.com>
2024-11-12 21:55:05 +00:00
Joonas Bergius 83e89da1b4
Merge pull request #85 from wasmCloud/chore/bump-actions/cache
chore(ci): bump actions/cache to v4
2024-11-12 14:42:05 -07:00
Joonas Bergius c15596981c
chore(ci): bump actions/setup-go to v5
Signed-off-by: Joonas Bergius <joonas@cosmonic.com>
2024-11-12 14:13:38 -07:00
Joonas Bergius aad13c548e
chore(ci): bump actions/cache to v4
Signed-off-by: Joonas Bergius <joonas@cosmonic.com>
2024-11-12 14:08:13 -07:00
Joonas Bergius 0df9b0e0b8 chore: Name uploaded bottles artifacts according to matrix.os
Fixes #64

Signed-off-by: Joonas Bergius <joonas@cosmonic.com>
2024-10-24 11:29:45 -04:00
Joonas Bergius e46e2659d4 wash: add 0.36.1 bottle. 2024-10-23 23:41:12 +00:00
brooksmtownsend 68b529d364 bump wash to v0.36.1
Closes #82.

Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Joonas Bergius <joonas@cosmonic.com>
Signed-off-by: Joonas Bergius <19793+joonas@users.noreply.github.com>
2024-10-23 23:37:58 +00:00
Brooks Townsend f3e45b3eed wash: add 0.36.0 bottle. 2024-10-23 11:41:47 +00:00
brooksmtownsend 473b2f370e bump wash to v0.36.0
Closes #81.

Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2024-10-23 11:38:30 +00:00
Brooks Townsend 1bdb5c1bf0 wash: add 0.35.0 bottle. 2024-10-10 14:26:00 +00:00
brooksmtownsend 4a2f77bee4 bump wash to v0.35.0
Closes #79.

Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2024-10-10 14:22:48 +00:00
Brooks Townsend f279121d86 wash: add 0.34.1 bottle. 2024-10-01 21:12:07 +00:00
brooksmtownsend 389a907af8 bump wash to v0.34.1
Closes #78.

Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2024-10-01 21:08:52 +00:00
Brooks Townsend 85feca557a wash: add 0.32.1 bottle. 2024-09-11 20:57:41 +00:00
brooksmtownsend 8b7f6bcdeb bump wash to v0.32.1
Closes #75.

Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2024-09-11 20:54:18 +00:00
Brooks Townsend f0b6d59cb1 wash: add 0.32.0 bottle. 2024-09-05 16:35:55 +00:00
brooksmtownsend 050facd028 bump wash to v0.32.0
Closes #73.

Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2024-09-05 16:28:37 +00:00
Brooks Townsend 4218d30809 wash: add 0.31.0 bottle. 2024-08-23 18:13:38 +00:00
brooksmtownsend 8d4ab709f2 bump wash to v0.31.0
Closes #72.

Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2024-08-23 18:10:24 +00:00
Brooks Townsend bed723bca9 wash: add 0.30.0 bottle. 2024-08-02 15:36:30 +00:00
brooksmtownsend 0b6836a1c1 bump wash to v0.30.0
Closes #71.

Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2024-08-02 15:32:51 +00:00
Brooks Townsend 270c695b04 chore: update CODEOWNERS with team
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
2024-07-24 16:58:18 -04:00
Brooks Townsend a13f019112 wash: add 0.29.2 bottle. 2024-06-18 14:05:06 +00:00
brooksmtownsend c964d7afc2 bump wash to v0.29.2
Closes #69.

Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2024-06-18 14:01:59 +00:00
Brooks Townsend 64f1d33f7f wash: add 0.29.1 bottle. 2024-06-13 19:25:02 +00:00
Brooks Townsend 3aff1b2068 ci(*): double quote bash vars for shellcheck
Closes #68.

Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2024-06-13 19:21:50 +00:00
brooksmtownsend 5b157790b7
bump wash to v0.29.1
Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
2024-06-13 14:46:07 -04:00
Brooks Townsend 74b501632b wash: add 0.29.0 bottle. 2024-06-12 19:32:25 +00:00
brooksmtownsend fcf9046e3f bump wash to v0.29.0
Closes #67.

Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2024-06-12 19:29:13 +00:00
Brooks Townsend 51343cb9e8 wash: add 0.28.1 bottle. 2024-05-10 15:11:45 +00:00
brooksmtownsend e9afb05ac0 bump wash to v0.28.1
Closes #63.

Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2024-05-10 15:08:48 +00:00
Brooks Townsend f6a92c0297 ci: bump create-pr version
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
2024-05-10 11:08:09 -04:00
Brooks Townsend 5684b65562 wash: add 0.28.0 bottle. 2024-05-08 19:36:25 +00:00
brooksmtownsend d9cd7f8d71 bump wash to v0.28.0
Closes #62.

Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2024-05-08 19:33:23 +00:00
Brooks Townsend a7d784e8b6 ci: allow invoking via repository_dispatch
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>

javascript

Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
2024-05-07 10:50:36 -04:00
Brooks Townsend 601e4fd790 wash: add 0.27.0 bottle. 2024-04-17 22:28:09 +00:00
brooksmtownsend 9a21398d13 bump wash to v0.27.0
Closes #60.

Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2024-04-17 22:24:59 +00:00
Brooks Townsend 4b4d18c038 wash: add 0.26.0 bottle. 2024-02-14 22:12:48 +00:00
brooksmtownsend 5f56385377 bump wash to v0.26.0
Closes #59.

Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2024-02-14 22:09:54 +00:00
thomastaylor312 85c6584f31 bump wash to v0.25.0
Closes #58.

Signed-off-by: thomastaylor312 <thomastaylor312@users.noreply.github.com>
Signed-off-by: Taylor Thomas <taylor@oftaylor.com>
2024-01-02 19:02:02 +00:00
brooksmtownsend d1656bb01a bump wash to v0.24.1
Closes #57.

Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2023-11-27 19:25:02 +00:00
brooksmtownsend b8ecff13b7 bump wash to v0.24.0
Closes #56.

Signed-off-by: brooksmtownsend <brooksmtownsend@users.noreply.github.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2023-11-22 21:29:56 +00:00
Brooks Townsend 30b69a7b66 fix: add executable bit to go releaser
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
2023-11-22 10:50:49 -05:00
Brooks Townsend 6f0b00abed fix: remove redundant mkdir
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>

remove unneeded mkdir

Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
2023-11-22 10:20:17 -05:00
Joonas Bergius af5139e62b Change wash Formula update workflow to use Goreleaser
Signed-off-by: Joonas Bergius <joonas@cosmonic.com>
2023-11-22 09:38:10 -05:00
Connor Smith 5fb317d972 wash: add 0.23.0 bottle. 2023-11-14 17:32:33 +00:00
Connor Smith 0d437bb3d2 wasmcloud: update 0.18.2 bottle. 2023-11-14 17:32:33 +00:00
Joonas Bergius c2b96156ab Address audit change introduced in 4.1.18
Closes #51.

Signed-off-by: Joonas Bergius <joonas@cosmonic.com>
Signed-off-by: Connor Smith <3869136+connorsmith256@users.noreply.github.com>
2023-11-14 17:29:27 +00:00
Joonas Bergius d193596330 Add test block back in to the wash formula
Signed-off-by: Joonas Bergius <joonas@cosmonic.com>
2023-11-14 10:54:56 -06:00
Joonas Bergius 65572e7997 Update Formula/wash.rb to install 0.23.0
Signed-off-by: Joonas Bergius <joonas@cosmonic.com>
2023-11-13 23:34:29 -06:00
Connor Smith 3615c27daf ci: update actions
Signed-off-by: Connor Smith <connor.smith.256@gmail.com>
2023-10-19 13:52:01 -06:00
Brooks Townsend 0499b71fd2 wash: update 0.21.1 bottle. 2023-10-16 21:55:52 +00:00
Brooks Townsend 4024481422 fix(runner): run on macos-12
Closes #49.

Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2023-10-16 21:51:13 +00:00
brooksmtownsend dd6be1117a
bump wash to v0.21.1
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
2023-10-16 14:06:41 -04:00
Brooks Townsend 644606fdf4 wash: update 0.20.2 bottle. 2023-09-08 18:25:01 +00:00
brooksmtownsend a8dd953c2d bump wash to v0.20.2
Closes #48.

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2023-09-08 18:20:07 +00:00
Brooks Townsend 16d7608baa wash: update 0.20.1 bottle. 2023-09-06 05:41:56 +00:00
brooksmtownsend 424043faad bump wash to v0.20.1
Closes #47.

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2023-09-06 05:35:55 +00:00
Brooks Townsend 5beb74f2ef wash: update 0.20.0 bottle. 2023-09-05 19:11:54 +00:00
brooksmtownsend 88fc3b9749 bump wash to v0.20.0
Closes #46.

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2023-09-05 19:06:26 +00:00
Brooks Townsend a894cdf0e8 wash: update 0.19.1 bottle. 2023-07-31 15:07:27 +00:00
brooksmtownsend c7314e9189 bump wash to v0.19.1
Closes #45.

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2023-07-31 15:02:29 +00:00
Brooks Townsend 3c8ed643da wash: update 0.19.0 bottle. 2023-07-24 16:52:51 +00:00
brooksmtownsend a729b19d02 bump wash to v0.19.0
Closes #44.

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2023-07-24 16:48:04 +00:00
Brooks Townsend 2c9efef524 wash: update 0.18.1 bottle. 2023-07-05 17:05:28 +00:00
Brooks Townsend ad2e67376e got rid of trailing whitespace in formula
Closes #43.

Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2023-07-05 17:00:45 +00:00
brooksmtownsend 1bd344be4b bump wash to v0.18.1
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2023-07-05 12:05:50 -04:00
Brooks Townsend b45d9298eb
Separated update from test, fix indentation (#42)
* separated update from test

Signed-off-by: Brooks Townsend <brooks@cosmonic.com>

* fixed indentation in template

Signed-off-by: Brooks Townsend <brooks@cosmonic.com>

---------

Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2023-07-05 12:03:13 -04:00
Brooks Townsend 66f5ea66a5
Fixed nits and missed character (#38)
* fixed nits and missed character

Signed-off-by: Brooks Townsend <brooks@cosmonic.com>

* added main pull request target

Signed-off-by: Brooks Townsend <brooks@cosmonic.com>

* no need for catechos

Signed-off-by: Brooks Townsend <brooks@cosmonic.com>

---------

Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2023-07-04 07:37:38 -04:00
Brooks Townsend 55378b8810 added workflow dispatch for easy releases
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2023-07-03 16:09:47 -04:00
Brooks Townsend ba50dc715a wash: update 0.18.0 bottle. 2023-06-13 19:25:58 +00:00
Brooks Townsend 56d139c42b bumped to 0.18.0
Closes #35.

Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
2023-06-13 19:20:46 +00:00
10 changed files with 254 additions and 21 deletions

2
.github/CODEOWNERS vendored Normal file
View File

@ -0,0 +1,2 @@
# 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

@ -4,12 +4,14 @@ on:
branches:
- main
pull_request:
branches:
- main
jobs:
test-bot:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-11]
os: [ubuntu-22.04, macos-13]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Homebrew
@ -18,7 +20,7 @@ jobs:
- name: Cache Homebrew Bundler RubyGems
id: cache
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
@ -34,12 +36,12 @@ jobs:
- 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'
- name: Upload bottles as artifact
if: always() && github.event_name == 'pull_request'
uses: actions/upload-artifact@main
with:
name: bottles
name: "bottles_${{ matrix.os }}"
path: "*.bottle.*"

96
.github/workflows/update.yml vendored Normal file
View File

@ -0,0 +1,96 @@
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

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
# Goreleaser output directory
dist/
# Temporary files for update pipeline
tmp/

43
.goreleaser.yml Normal file
View File

@ -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

25
.goreleaser_hook.sh Executable file
View File

@ -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}" \;

View File

@ -1,24 +1,59 @@
# 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"
url "https://github.com/wasmCloud/wash/archive/v0.17.4.tar.gz"
sha256 "71958cf9dc92c1f083989ee28aa05fcff9d104a853bf4a3774c4c2b5f7394aa4"
homepage "https://wasmcloud.com/"
version "0.42.0"
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"
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
depends_on "rust"
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
on_linux do
depends_on "zlib"
end
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
system "cargo", "install", *std_cargo_args
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
test do

View File

@ -1,15 +1,14 @@
class Wasmcloud < Formula
desc "Secure, distributed, WebAssembly actor model runtime for everywhere"
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"
license "Apache-2.0"
bottle do
root_url "https://github.com/wasmCloud/homebrew-wasmcloud/releases/download/wasmcloud-0.18.2"
rebuild 3
sha256 cellar: :any_skip_relocation, big_sur: "1241173c64d48a0c4d1ea518294b745e2529696c76e054b68cd5f10b0029121c"
sha256 cellar: :any_skip_relocation, x86_64_linux: "361e620a885d228b62fdff23583d95064674bb6f0214061610839fcd4a68791e"
rebuild 4
sha256 cellar: :any_skip_relocation, x86_64_linux: "82d2c88138228b6eedcdd4603171720b87538c0c28f2c00293e044f9848d59bd"
end
depends_on "rust" => :build

27
template/wash.txt Normal file
View File

@ -0,0 +1,27 @@
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