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
This commit is contained in:
Kyle Sanderson 2023-05-24 03:56:12 -07:00 committed by GitHub
parent e63719a57d
commit b1eae6e980
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

View file

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

View file

@ -67,6 +67,9 @@ archives:
- none*
replacements:
amd64: x86_64
format_overrides:
- goos: windows
format: zip
release:
prerelease: auto