Skip to content

Commit

Permalink
automatically build and release for many platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Dec 5, 2022
1 parent e11b861 commit 2d74aee
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: build for all platforms

on:
push:
tags:
- '*'

permissions:
contents: write

jobs:
make-release:
runs-on: ubuntu-latest
steps:
- uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
build-all-for-all:
runs-on: ubuntu-latest
needs:
- make-release
strategy:
matrix:
goos: [linux, freebsd, openbsd]
goarch: [arm, amd64, arm64]
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "1.18"
overwrite: true
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
func main() {
p := plugin.Plugin{
Name: "invoicewithdescriptionhash",
Version: "v1.3",
Version: "v1.4",
Options: []plugin.Option{},
RPCMethods: []plugin.RPCMethod{
{
Expand Down

0 comments on commit 2d74aee

Please sign in to comment.