-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
47 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,52 @@ | ||
# This is an example .goreleaser.yml file with some sensible defaults. | ||
# Make sure to check the documentation at https://goreleaser.com | ||
|
||
# The lines below are called `modelines`. See `:help modeline` | ||
# Feel free to remove those if you don't want/need to use them. | ||
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json | ||
# vim: set ts=2 sw=2 tw=0 fo=cnqoj | ||
|
||
version: 2 | ||
|
||
before: | ||
hooks: | ||
# if you don't do these things before calling goreleaser, it might be a | ||
# good idea to do them here: | ||
- rustup default stable | ||
- cargo install --locked cargo-zigbuild | ||
- cargo fetch --locked | ||
|
||
builds: | ||
- builder: rust | ||
flags: | ||
- --release | ||
targets: | ||
- x86_64-unknown-linux-gnu | ||
- x86_64-apple-darwin | ||
- x86_64-pc-windows-gnu | ||
- aarch64-unknown-linux-gnu | ||
- aarch64-apple-darwin | ||
|
||
archives: | ||
- format: tar.gz | ||
# this name template makes the OS and Arch compatible with the results of `uname`. | ||
name_template: >- | ||
{{ .ProjectName }}_ | ||
{{- title .Os }}_ | ||
{{- if eq .Arch "amd64" }}x86_64 | ||
{{- else if eq .Arch "386" }}i386 | ||
{{- else }}{{ .Arch }}{{ end }} | ||
# use zip for windows archives | ||
format_overrides: | ||
- goos: | ||
- linux | ||
- darwin | ||
- windows | ||
- freebsd | ||
- android | ||
goarch: | ||
- "386" | ||
- amd64 | ||
- arm64 | ||
- arm | ||
goarm: | ||
- "7" | ||
binary: wstunnel | ||
ignore: | ||
- goos: windows | ||
format: zip | ||
|
||
goarch: arm64 | ||
- goos: windows | ||
goarch: arm | ||
- goos: darwin | ||
goarch: arm | ||
- goos: android | ||
goarch: "386" | ||
- goos: android | ||
goarch: amd64 | ||
- goos: android | ||
goarch: arm | ||
- goos: darwin | ||
goarch: "386" | ||
- goos: freebsd | ||
goarch: "arm" | ||
- goos: freebsd | ||
goarch: "arm64" | ||
main: goreleaser.go | ||
hooks: | ||
#pre: | ||
# - /bin/sh -c "if [ ! -e ./goreleaser.go ]; then echo -e 'package main\\\nfunc main() { }' > ./goreleaser.go ; fi" | ||
post: | ||
- ./.goreleaser_hook.sh "{{ .Arch }}" "{{ .Os }}" "{{ .Arm }}" "{{ .ProjectName }}" | ||
checksum: | ||
name_template: "checksums.txt" | ||
changelog: | ||
use: github | ||
sort: asc | ||
filters: | ||
exclude: | ||
- "^docs:" | ||
- "^test:" | ||
|
||
release: | ||
footer: >- | ||
--- | ||
Released by [GoReleaser](https://github.com/goreleaser/goreleaser). | ||
replace_existing_artifacts: true | ||
prerelease: auto |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters