Skip to content

Commit b531ad3

Browse files
committed
fix: goreleaser for 1.21
1 parent c4a25ef commit b531ad3

File tree

4 files changed

+32
-9
lines changed

4 files changed

+32
-9
lines changed

.github/workflows/dry-run-release.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: dry-run-goreleaser
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
dry-run-goreleaser:
11+
runs-on: ubuntu-cpu16-ram64
12+
environment: release
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
submodules: true
17+
- name: Set up Go
18+
uses: actions/setup-go@v5
19+
with:
20+
go-version: '1.21'
21+
check-latest: true
22+
- name: Pull LFS files
23+
run: git lfs pull
24+
- name: release dry run
25+
run: make release-dry-run

.goreleaser.yml

-5
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,6 @@ builds:
8282

8383
archives:
8484
- name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
85-
replacements:
86-
darwin: Darwin
87-
linux: Linux
88-
windows: Windows
89-
amd64: x86_64
9085
format_overrides:
9186
- goos: windows
9287
format: zip

Makefile

+5-4
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ build-linux:
122122
GOOS=linux GOARCH=amd64 LEDGER_ENABLED=false $(MAKE) build
123123

124124
$(BUILD_TARGETS): go.sum $(BUILDDIR)/
125-
go $@ $(BUILD_FLAGS) $(BUILD_ARGS) ./...
125+
CGO_ENABLED="1" go $@ $(BUILD_FLAGS) $(BUILD_ARGS) ./...
126126

127127
$(BUILDDIR)/:
128128
mkdir -p $(BUILDDIR)/
@@ -531,7 +531,7 @@ proto-check-breaking:
531531
###############################################################################
532532

533533
PACKAGE_NAME:=github.com/haqq-network/haqq
534-
GOLANG_CROSS_VERSION = v1.21
534+
GOLANG_CROSS_VERSION = v1.21.2
535535
GOPATH ?= '$(HOME)/go'
536536
release-dry-run:
537537
docker run \
@@ -543,7 +543,7 @@ release-dry-run:
543543
-v ${GOPATH}/pkg:/go/pkg \
544544
-w /go/src/$(PACKAGE_NAME) \
545545
ghcr.io/goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
546-
--rm-dist --skip-validate --skip-publish --snapshot
546+
--clean --skip-validate --skip-publish --snapshot
547547

548548
release:
549549
@if [ ! -f ".release-env" ]; then \
@@ -559,7 +559,8 @@ release:
559559
-v `pwd`:/go/src/$(PACKAGE_NAME) \
560560
-w /go/src/$(PACKAGE_NAME) \
561561
ghcr.io/goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
562-
release --rm-dist --skip-validate
562+
release \
563+
--clean --skip-validate
563564

564565
.PHONY: release-dry-run release
565566

go.mod

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module github.com/haqq-network/haqq
22

33
go 1.21
44

5+
toolchain go1.21.9
6+
57
require (
68
cosmossdk.io/api v0.3.1
79
cosmossdk.io/errors v1.0.0

0 commit comments

Comments
 (0)