summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml16
-rw-r--r--.goreleaser.yml19
2 files changed, 26 insertions, 9 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d8d1cf7..c096fbd 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -4,10 +4,10 @@ name: Cross-Platform
on:
push:
- branches:
+ branches:
- master
pull_request:
- branches:
+ branches:
- master
jobs:
@@ -133,3 +133,15 @@ jobs:
# uses: docker://reviewdog/action-golangci-lint:v1 # pre-build docker image
with:
github_token: ${{ secrets.github_token }}
+
+ goreleaser-check:
+ runs-on: ubuntu-latest
+ steps:
+ - name: checkout
+ uses: actions/checkout@v2
+ - uses: goreleaser/goreleaser-action@v1
+ with:
+ version: latest
+ args: check
+ env:
+ TAG: ${{ steps.vars.outputs.version_tag }}
diff --git a/.goreleaser.yml b/.goreleaser.yml
index 5822b88..9dcfab1 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -34,13 +34,18 @@ builds:
ignore:
- goos: darwin
goarch: arm
- - goarch:
- - ppc64le
- - s390x
- goos:
- - darwin
- - windows
- - freebsd
+ - goos: darwin
+ goarch: ppc64le
+ - goos: darwin
+ goarch: s390x
+ - goos: windows
+ goarch: ppc64le
+ - goos: windows
+ goarch: s390x
+ - goos: freebsd
+ goarch: ppc64le
+ - goos: freebsd
+ goarch: s390x
flags:
- -trimpath
ldflags: