Skip to content

Commit

Permalink
Merge branch 'release/v0.53.x' into chore/systests
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 authored Mar 7, 2025
2 parents 003808b + 07f4de8 commit c33f054
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release-simd.yml
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 }}
46 changes: 46 additions & 0 deletions simapp/.goreleaser.yml
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

0 comments on commit c33f054

Please sign in to comment.