Skip to content

Commit

Permalink
ci: update goreleaser to v2 (#3239) (#3242)
Browse files Browse the repository at this point in the history
* ci: update goreleaser to v2

* ci: update libwasmvm downloads in goreleaser

* update goreleaser for arm

(cherry picked from commit 767e2ed)

Co-authored-by: MSalopek <[email protected]>
  • Loading branch information
mergify[bot] and MSalopek committed Jul 30, 2024
1 parent d102fe9 commit 7c7b31f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 4 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
version: 2
project_name: gaia

env:
Expand Down Expand Up @@ -80,7 +81,7 @@ builds:
binary: gaiad
hooks:
pre:
- 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
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.x86_64.a -O /lib/libwasmvm_muslc.x86_64.a
goos:
- linux
goarch:
Expand Down Expand Up @@ -113,7 +114,7 @@ builds:
binary: gaiad
hooks:
pre:
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.aarch64.a -O /usr/lib/aarch64-linux-gnu/libwasmvm_muslc.a
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.aarch64.a -O /lib/libwasmvm_muslc.aarch64.a
goos:
- linux
goarch:
Expand Down Expand Up @@ -185,7 +186,7 @@ snapshot:
name_template: SNAPSHOT-{{ .Commit }}

changelog:
skip: false
disable: false

git:
# What should be used to sort tags when gathering the current and previous
Expand Down
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,13 @@ ifneq ($(strip $(TAG)),)
-e CGO_ENABLED=1 \
-e TM_VERSION=$(TM_VERSION) \
-e COSMWASM_VERSION=$(COSMWASM_VERSION) \
-v /var/run/docker.sock:/var/run/docker.sock \
-v `pwd`:/go/src/gaiad \
-w /go/src/gaiad \
$(GORELEASER_IMAGE) \
release \
--snapshot \
--skip=publish \
--debug \
--verbose \
--clean
@rm -rf dist/
@echo "--> Done create-release-dry-run for tag: $(TAG)"
Expand All @@ -194,7 +193,6 @@ goreleaser-build-local:
-e CGO_ENABLED=1 \
-e TM_VERSION=$(TM_VERSION) \
-e COSMWASM_VERSION=$(COSMWASM_VERSION) \
-v /var/run/docker.sock:/var/run/docker.sock \
-v `pwd`:/go/src/gaiad \
-w /go/src/gaiad \
--platform=linux/amd64 \
Expand All @@ -204,7 +202,7 @@ goreleaser-build-local:
--skip=publish \
--release-notes ./RELEASE_NOTES.md \
--timeout 90m \
--debug
--verbose

# uses goreleaser to create static binaries for linux an darwin
# requires access to GITHUB_TOKEN which has to be available in the CI environment
Expand All @@ -216,7 +214,6 @@ ci-release:
-e GITHUB_TOKEN=$(GITHUB_TOKEN) \
-e TM_VERSION=$(TM_VERSION) \
-e COSMWASM_VERSION=$(COSMWASM_VERSION) \
-v /var/run/docker.sock:/var/run/docker.sock \
-v `pwd`:/go/src/gaiad \
-w /go/src/gaiad \
--platform=linux/amd64 \
Expand Down

0 comments on commit 7c7b31f

Please sign in to comment.