diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ea3ea75..e20fd4f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -174,7 +174,7 @@ jobs: uses: goreleaser/goreleaser-action@v5 with: distribution: goreleaser - version: latest + version: '~> v1' args: release --clean --skip=validate env: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 332e059..90f22e0 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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 diff --git a/Cargo.lock b/Cargo.lock index 9a33f7a..8c3320d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3516,7 +3516,7 @@ checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" [[package]] name = "wstunnel" -version = "10.1.8" +version = "10.1.9" dependencies = [ "ahash", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 1e69072..3e85bfb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["wstunnel-cli"] [package] name = "wstunnel" -version = "10.1.8" +version = "10.1.9" edition = "2021" repository = "https://github.com/erebe/wstunnel.git" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html