-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/v0.53.x' into chore/systests
- Loading branch information
Showing
2 changed files
with
86 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Release Simd | ||
|
||
on: | ||
push: | ||
tags: | ||
- "simd/v*.*.*" | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
goreleaser: | ||
permissions: | ||
contents: write # for goreleaser/goreleaser-action to create a GitHub release | ||
runs-on: depot-ubuntu-22.04-4 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.23" | ||
check-latest: true | ||
- name: Set env | ||
run: | | ||
echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/simd/}" >> $GITHUB_ENV | ||
echo "FULL_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | ||
- name: Tag without prefix locally to avoid error in goreleaser | ||
run: |- | ||
git tag -d ${{ env.RELEASE_VERSION }} || echo "No such a tag exists before" | ||
git tag ${{ env.RELEASE_VERSION }} HEAD | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v3 | ||
with: | ||
version: v2.7.0 | ||
args: release --clean | ||
workdir: . | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GORELEASER_CURRENT_TAG: ${{ env.RELEASE_VERSION }} | ||
SIMD_FULL_TAG: ${{ env.FULL_TAG }} |
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
project_name: simd | ||
|
||
version: 2 | ||
|
||
release: | ||
disable: false | ||
name_template: "{{.Env.SIMD_FULL_TAG}}" | ||
|
||
before: | ||
hooks: | ||
- go mod tidy | ||
|
||
builds: | ||
- main: ./simd | ||
goos: | ||
- linux | ||
- darwin | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
env: | ||
- LEDGER_ENABLED=true | ||
flags: | ||
- -trimpath | ||
- -mod=readonly | ||
tags: | ||
- netgo | ||
- ledger | ||
ldflags: | ||
- '-X github.com/cosmos/cosmos-sdk/version.Name=sim' | ||
- '-X github.com/cosmos/cosmos-sdk/version.AppName=simd' | ||
- '-X github.com/cosmos/cosmos-sdk/version.Version={{.Version}}' | ||
- '-X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}}' | ||
- '-X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger"' | ||
- '-w' | ||
- '-s' | ||
|
||
archives: | ||
- name_template: '{{ replace .Version "simd/" "simd-" }}-{{ .Os }}-{{ .Arch }}' | ||
|
||
checksum: | ||
name_template: 'SHA256SUMS-{{ replace .Version "simd/" "simd-" }}.txt' | ||
algorithm: sha256 | ||
|
||
changelog: | ||
disable: true |