diff --git a/.github/workflows/release-umee.yml b/.github/workflows/release-umee.yml index 6acd409bcb..015309f3c4 100644 --- a/.github/workflows/release-umee.yml +++ b/.github/workflows/release-umee.yml @@ -28,6 +28,11 @@ jobs: - name: Set Env run: echo "TM_VERSION=$(go list -m github.com/cometbft/cometbft | sed 's:.* ::')" >> $GITHUB_ENV + - name: Set Wasmvm Env + run: echo "COSMWASM_VERSION=$(go list -m github.com/CosmWasm/wasmvm | sed 's/.* //')" >> $GITHUB_ENV + + + # useful to test builds. However will require to add "push" rule to the "on" section - name: generate and update swagger docs run: | @@ -35,19 +40,20 @@ jobs: make proto-update-swagger-docs - name: goreleaser test-build - uses: goreleaser/goreleaser-action@v6 + uses: goreleaser/goreleaser-action@v5 if: github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'Enable:ReleaseBuild') with: version: latest - args: build --rm-dist --skip-validate # skip validate skips initial sanity checks in order to be able to fully run + args: build --clean --skip-validate # skip validate skips initial sanity checks in order to be able to fully run env: TM_VERSION: ${{ env.TM_VERSION }} - name: Release - uses: goreleaser/goreleaser-action@v6 + uses: goreleaser/goreleaser-action@v5 if: startsWith(github.ref, 'refs/tags/') with: version: latest - args: release --rm-dist --release-notes ./RELEASE_NOTES.md + args: release --clean --release-notes ./RELEASE_NOTES.md env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} TM_VERSION: ${{ env.TM_VERSION }} + COSMWASM_VERSION: ${{ env.COSMWASM_VERSION}} diff --git a/.goreleaser.yml b/.goreleaser.yml index 0dc2fe6e66..d6d5abbcdf 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -6,6 +6,7 @@ env: before: hooks: + - sudo wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.x86_64.a -O /usr/lib/x86_64-linux-gnu/libwasmvm_muslc.a - go mod download builds: @@ -14,10 +15,12 @@ builds: binary: umeed mod_timestamp: "{{ .CommitTimestamp }}" flags: - - -tags=badgerdb ledger netgo + - -tags=badgerdb ledger netgo muslc - -trimpath ldflags: - - -s -w -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X github.com/cosmos/cosmos-sdk/version.Name=umee -X github.com/cosmos/cosmos-sdk/version.AppName=umeed -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 -X github.com/cometbft/cometbft/version.TMCoreSemVer={{ .Env.TM_VERSION }} + - -s -w -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X github.com/cosmos/cosmos-sdk/version.Name=umee -X github.com/cosmos/cosmos-sdk/version.AppName=umeed -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 -X github.com/cometbft/cometbft/version.TMCoreSemVer={{ .Env.TM_VERSION }} -linkmode=external -extldflags '-Wl,-z,muldefs -static -lm' + env: + - CC=x86_64-linux-gnu-gcc goos: - linux goarch: