Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Test s2 asm tags with defines #493

Merged
merged 2 commits into from Feb 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 14 additions & 7 deletions .github/workflows/go.yml
Expand Up @@ -31,11 +31,6 @@ jobs:
- name: Test
run: go test ./...

- name: Test S2 GOAMD64 v3
env:
GOAMD64: v3
run: go test -tags=goamd64_v3 ./s2/...

- name: Test Noasm
run: go test -tags=noasm ./...

Expand Down Expand Up @@ -66,9 +61,21 @@ 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/garble@latest

- name: goreleaser deprecation
run: curl -sfL https://git.io/goreleaser | VERSION=v0.162.0 sh -s -- check
run: curl -sfL https://git.io/goreleaser | VERSION=v1.5.0 sh -s -- check

- name: goreleaser snapshot
run: curl -sL https://git.io/goreleaser | VERSION=v0.162.0 sh -s -- --snapshot --skip-publish --rm-dist
run: curl -sL https://git.io/goreleaser | VERSION=v1.5.0 sh -s -- --snapshot --skip-publish --rm-dist

- name: Test S2 GOAMD64 v3
env:
GOAMD64: v3
run: go test -asmflags=-D=GOAMD64_v3 ./s2/...

- name: Test S2 GOAMD64 v4
env:
GOAMD64: v4
run: go test -asmflags=-D=GOAMD64_v4 ./s2/...
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Expand Up @@ -19,11 +19,14 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.17.x
-
name: install garble
run: go install mvdan.cc/garble@latest
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: 0.162.0
version: 1.5.0
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down