increase the number of os and arch to build in the release

This commit is contained in:
Sinuhe Tellez 2021-05-06 00:20:31 -04:00
parent 8e3001e8ab
commit 81690d9081
3 changed files with 64 additions and 5 deletions

View File

@ -22,9 +22,6 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.16
-
name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
@ -32,5 +29,5 @@ jobs:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

2
.gitignore vendored
View File

@ -26,4 +26,4 @@ _testmain.go
*.prof
dir2opds
!/dir2opds
!/dir2opdsdist/

62
.goreleaser.yml Normal file
View File

@ -0,0 +1,62 @@
project_name: dir2opds
env:
- GO111MODULE=on
- GOPROXY=https://proxy.golang.org
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
flags:
- -buildmode
- exe
goos:
- darwin
- linux
- windows
- freebsd
- netbsd
- openbsd
- dragonfly
goarch:
- amd64
- 386
- arm
- arm64
goarm:
- 7
ignore:
- goos: darwin
goarch: 386
archives:
-
id: "dir2opds"
builds: ['dir2opds']
format: tar.gz
format_overrides:
- goos: windows
format: zip
replacements:
amd64: 64bit
386: 32bit
arm: ARM
arm64: ARM64
darwin: macOS
linux: Linux
windows: Windows
openbsd: OpenBSD
netbsd: NetBSD
freebsd: FreeBSD
dragonfly: DragonFlyBSD
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'