Skip to content

Commit

Permalink
Switch to goreleaser-cross
Browse files Browse the repository at this point in the history
  • Loading branch information
anishathalye committed Jul 17, 2023
1 parent 34ec52e commit b4eb74e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker://mailchain/goreleaser-xcgo:latest
- uses: actions/checkout@v3
- uses: docker://goreleaser/goreleaser-cross:v1.20.6
with:
args: --rm-dist
args: --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40 changes: 26 additions & 14 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,47 @@ builds:
- id: periscope-darwin-amd64
main: ./cmd/psc/
binary: psc
goos:
- darwin
goarch:
- amd64
env:
- CGO_ENABLED=1
- CC=o64-clang
- CXX=o64-clang++
- id: periscope-darwin-arm64
main: ./cmd/psc/
binary: psc
goos:
- darwin
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=1
- CC=oa64-clang
- CXX=oa64-clang++
- id: periscope-linux-amd64
main: ./cmd/psc/
binary: psc
goos:
- linux
goarch:
- amd64
env:
- CGO_ENABLED=1
- CC=x86_64-linux-gnu-gcc
- CXX=x86_64-linux-gnu-g++
- id: periscope-linux-arm64
main: ./cmd/psc/
binary: psc
goos:
- linux
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=1
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
checksum:
name_template: 'checksums.txt'
snapshot:
Expand All @@ -36,18 +60,6 @@ archives:
- goos: windows
format: zip
name_template: "{{.ProjectName}}-v{{.Version}}-{{.Os}}-{{.Arch}}"
replacements:
amd64: 64bit
386: 32bit
arm: ARM
arm64: ARM64
darwin: macOS
linux: Linux
windows: Windows
openbsd: OpenBSD
netbsd: NetBSD
freebsd: FreeBSD
dragonfly: DragonFlyBSD
files:
- README.md
- LICENSE.txt
Expand Down

0 comments on commit b4eb74e

Please sign in to comment.