From dd1093676f4a558752aef77b56b2fa5132e0d6d1 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sun, 24 Jul 2022 20:09:57 -0300 Subject: [PATCH] github action to build all the things. --- .github/workflows/release.yml | 43 +++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..6507f87 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,43 @@ +name: build all relays 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, windows, darwin, freebsd, openbsd] + goarch: [amd64, arm64] + project: ['basic', 'whitelisted', 'expensive', 'rss-bridge'] + exclude: + - goarch: arm64 + goos: windows + steps: + - uses: actions/checkout@v3 + - uses: wangyoucao577/go-release-action@v1.30 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + goversion: "1.18" + project_path: ${{ matrix.project }} + binary_name: "relayer-${{ matrix.project }}-${{ matrix.goos }}-${{ matrix.goarch }}" + overwrite: true