Skip to content

Commit

Permalink
[build] test build on Windows only
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Nov 13, 2021
1 parent d6a8ff4 commit d7f9927
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
Release:
runs-on: ubuntu-latest
runs-on: windows-latest
env:
GOPATH: ${{ github.workspace }}
GO111MODULE: off
Expand Down
17 changes: 12 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,22 @@ builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
# - linux
# - darwin
- windows
goarch:
- 386
- amd64
- arm
- arm64
ignore:
- goos: darwin
goarch: 386
# ignore:
# - goos: darwin
# goarch: 386
main: ./gm.go
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- -s -w -X 'main.gmVersion={{.Version}}' -X 'main.gmBuildCommit={{.Commit}}' -X 'main.gmBuildTimestamp={{.Date}}'

archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements:
Expand All @@ -30,21 +31,26 @@ archives:
format: zip
- goos: darwin
format: zip

checksum:
name_template: "checksums.txt"
algorithm: sha512

snapshot:
name_template: "{{ .Tag }}-next"

changelog:
filters:
exclude:
- "^docs:"
- "^test:"
- Merge pull request
- Merge branch

signs:
- artifacts: all
args: ["--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}"]

snapcrafts:
- name: gum
grade: stable
Expand Down Expand Up @@ -78,6 +84,7 @@ snapcrafts:
Gum will execute the build based on the root build file unless **-gn** is specified, in which case the nearest build file
will be selected. If a specific build file is given (**-b**, **--build-file** for Gradle; **-f**, **--file** for Maven,
**-f**, **-file**, **-buildfile** for Ant) then that file will be used instead.
brews:
- name: gum
goarm: 6
Expand Down

0 comments on commit d7f9927

Please sign in to comment.