github.com/simpleiot/simpleiot@v0.18.3/.goreleaser.yml (about) 1 # This is an example goreleaser.yaml file with some sane defaults. 2 # Make sure to check the documentation at http://goreleaser.com 3 before: 4 hooks: 5 # You may remove this if you don't use go modules. 6 - go mod download 7 # you may remove this if you don't need go generate 8 - go generate ./... 9 changelog: 10 skip: true 11 builds: 12 - main: ./cmd/siot/main.go 13 id: siot 14 binary: siot 15 env: 16 - CGO_ENABLED=0 17 goos: 18 - linux 19 - darwin 20 - windows 21 goarch: 22 - amd64 23 - arm 24 - arm64 25 - riscv64 26 - 386 27 goarm: 28 - 6 29 - 7 30 ignore: 31 - goos: darwin 32 goarch: 386 33 - goos: darwin 34 goarch: riscv64 35 - goos: windows 36 goarch: arm 37 - goos: windows 38 goarch: riscv64 39 hooks: 40 pre: 41 #- /bin/sh -c '. ./envsetup.sh && siot_setup && siot_build_dependencies' 42 archives: 43 - name_template: >- 44 {{- .ProjectName }}- 45 {{- .Tag }}- 46 {{- if eq .Os "darwin" }}macos 47 {{- else }}{{ .Os }}{{ end }}- 48 {{- if eq .Arch "amd64" }}x86_64 49 {{- else if eq .Arch "386" }}i386 50 {{- else }}{{ .Arch }}{{ end }} 51 {{- if .Arm }}{{ .Arm }}{{ end }} 52 wrap_in_directory: true 53 format: tar.gz 54 format_overrides: 55 - goos: windows 56 format: zip 57 files: 58 - README.md 59 - LICENSE 60 - CHANGELOG.md 61 62 63 checksum: 64 name_template: "checksums.txt" 65 snapshot: 66 name_template: "{{ .Tag }}-next" 67 #env_files: 68 #github_token: GITHUB_TOKEN