-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tests: Use Go 1.21.x * Fix vet * Upgrade goreleaser & garble * Install in pre-hook only. * Remove deprecated replacements. * Work around garble compiler issue
- Loading branch information
Showing
5 changed files
with
25 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ jobs: | |
build: | ||
strategy: | ||
matrix: | ||
go-version: [1.18.x, 1.19.x, 1.20.x] | ||
go-version: [1.19.x, 1.20.x, 1.21.x] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
env: | ||
CGO_ENABLED: 0 | ||
|
@@ -54,7 +54,7 @@ jobs: | |
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.20.x | ||
go-version: 1.21.x | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
@@ -76,7 +76,7 @@ jobs: | |
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.20.x | ||
go-version: 1.21.x | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
@@ -90,14 +90,11 @@ jobs: | |
- name: Build s2c | ||
run: go build github.com/klauspost/compress/s2/cmd/s2c && go build github.com/klauspost/compress/s2/cmd/s2d&&./s2c -verify s2c &&./s2d s2c.s2&&rm ./s2c&&rm s2d&&rm s2c.s2 | ||
|
||
- name: install garble | ||
run: go install mvdan.cc/[email protected] | ||
|
||
- name: goreleaser deprecation | ||
run: curl -sfL https://git.io/goreleaser | VERSION=v1.9.2 sh -s -- check | ||
run: curl -sfL https://git.io/goreleaser | VERSION=v1.20.0 sh -s -- check | ||
|
||
- name: goreleaser snapshot | ||
run: curl -sL https://git.io/goreleaser | VERSION=v1.9.2 sh -s -- --snapshot --skip-publish --rm-dist | ||
run: curl -sL https://git.io/goreleaser | VERSION=v1.20.0 sh -s -- --snapshot --skip-publish --rm-dist | ||
|
||
- name: Test S2 GOAMD64 v3 | ||
env: | ||
|
@@ -119,7 +116,7 @@ jobs: | |
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.20.x | ||
go-version: 1.21.x | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
@@ -190,7 +187,7 @@ jobs: | |
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.20.x | ||
go-version: 1.21.x | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,15 +21,12 @@ jobs: | |
name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.20.x | ||
- | ||
name: install garble | ||
run: go install mvdan.cc/[email protected] | ||
go-version: 1.21.x | ||
- | ||
name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
version: 1.9.2 | ||
version: 1.20.0 | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
before: | ||
hooks: | ||
- ./gen.sh | ||
- go install mvdan.cc/garble@v0.9.3 | ||
- go install mvdan.cc/garble@v0.10.1 | ||
|
||
builds: | ||
- | ||
|
@@ -92,16 +92,7 @@ builds: | |
archives: | ||
- | ||
id: s2-binaries | ||
name_template: "s2-{{ .Os }}_{{ .Arch }}_{{ .Version }}" | ||
replacements: | ||
aix: AIX | ||
darwin: OSX | ||
linux: Linux | ||
windows: Windows | ||
386: i386 | ||
amd64: x86_64 | ||
freebsd: FreeBSD | ||
netbsd: NetBSD | ||
name_template: "s2-{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
|
@@ -125,7 +116,7 @@ changelog: | |
|
||
nfpms: | ||
- | ||
file_name_template: "s2_package_{{ .Version }}_{{ .Os }}_{{ .Arch }}" | ||
file_name_template: "s2_package__{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" | ||
vendor: Klaus Post | ||
homepage: https://github.com/klauspost/compress | ||
maintainer: Klaus Post <[email protected]> | ||
|
@@ -134,8 +125,3 @@ nfpms: | |
formats: | ||
- deb | ||
- rpm | ||
replacements: | ||
darwin: Darwin | ||
linux: Linux | ||
freebsd: FreeBSD | ||
amd64: x86_64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters