From 7ccd6474da3c855e5649a09da297c9afd8c29fff Mon Sep 17 00:00:00 2001 From: Jacob Weinstock Date: Tue, 8 Aug 2023 18:31:32 -0600 Subject: [PATCH] Use goreleaser to speed up cross compiles Signed-off-by: Jacob Weinstock --- .github/workflows/build.yml | 15 +++++++++++---- .github/workflows/release.yml | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 82391305..052c88b0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,14 +4,21 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 with: go-version: 1.20 - id: go - name: Build - run: make release-local + uses: goreleaser/goreleaser-action@v4 + with: + version: latest + args: release --clean --snapshot + env: + GITHUB_TOKEN: needed_but_not_used_for_builds - name: Test run: make test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64fabd48..230a4c47 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: username: ${{ secrets.GHCR_USERNAME }} password: ${{ secrets.GHCR_TOKEN }} - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v4 with: version: latest args: release --clean