Skip to content

Commit

Permalink
Merge pull request #149 from SaveTheRbtz/rbtz/goreleaser2
Browse files Browse the repository at this point in the history
chore(ci): release for all first class targets
  • Loading branch information
SaveTheRbtz authored Aug 2, 2024
2 parents 9279d40 + d454f16 commit d6cafef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ jobs:
go-version: ['1.22']
dir: ['pkg', 'cmd/zstdseek']
steps:
- uses: dcarbone/[email protected]
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: go.sum
cache-dependency-path: ${{ matrix.dir }}/go.sum
- name: Display Go version
run: go version
- name: Install dependencies (${{ matrix.dir }})
Expand All @@ -40,7 +41,7 @@ jobs:
- name: Build (${{ matrix.dir }})
working-directory: ./${{ matrix.dir }}
run: |
for OSARCH in $(go tool dist list); do
for OSARCH in $(go tool dist list -json | jq -r '.[] | select(.FirstClass) | [.GOOS , .GOARCH] | join("/")'); do
case $OSARCH in
freebsd*|darwin*|linux*|windows*|wasip*) ;;
*) continue ;;
Expand Down
14 changes: 6 additions & 8 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@ builds:
dir: ./cmd/zstdseek
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
- freebsd
goarch:
- amd64
- arm64
# go tool dist list -json | jq -r '.[] | select(.FirstClass)'
targets:
- go_first_class
checksum:
name_template: 'checksums.txt'
snapshot:
Expand All @@ -24,3 +19,6 @@ changelog:
exclude:
- '^docs:'
- '^test:'
- '^tests:'
- '^chore:'
- '^chore\('

0 comments on commit d6cafef

Please sign in to comment.