From b1eae6e98097c355ec0a55b10bf10a4a2e17187f Mon Sep 17 00:00:00 2001 From: Kyle Sanderson Date: Wed, 24 May 2023 03:56:12 -0700 Subject: [PATCH] build: goreleaser parallel builds (#956) * chore(goreleaser): parallel builds * 8 seems like a good number * 99 problems but a goreleaser... is one. * fine? * fine. * Update release.yml * Windows?? * bill * flip to zip on Windows * 4 minutes to zstd on windows... mac should be faster. * long switch for clarity * revert none hack * flip web to mac * bad touch * mac web is a loss * add zip --- .github/workflows/release.yml | 12 ++++++++---- .goreleaser.yml | 3 +++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 30f3dc9..a31b76d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -74,7 +74,7 @@ jobs: goreleaserbuild: name: Build Go binaries if: github.event_name == 'pull_request' - runs-on: ubuntu-latest + runs-on: macos-latest needs: [web, test] steps: - name: Checkout @@ -100,7 +100,7 @@ jobs: with: distribution: goreleaser version: latest - args: release --clean --skip-validate --skip-publish + args: release --clean --skip-validate --skip-publish --parallelism 99 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -108,7 +108,9 @@ jobs: uses: actions/upload-artifact@v3 with: name: autobrr - path: dist/*.tar.gz + path: | + dist/*.tar.gz + dist/*.zip goreleaser: name: Build and publish binaries @@ -147,7 +149,9 @@ jobs: uses: actions/upload-artifact@v3 with: name: autobrr - path: dist/*.tar.gz + path: | + dist/*.tar.gz + dist/*.zip docker: name: Build and publish Docker images diff --git a/.goreleaser.yml b/.goreleaser.yml index a8a88cf..1d5095b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -67,6 +67,9 @@ archives: - none* replacements: amd64: x86_64 + format_overrides: + - goos: windows + format: zip release: prerelease: auto