Skip to content

Commit 1befebc

Browse files
committed
bump version to v0.54
2 parents 2d0ff08 + 04cb6e5 commit 1befebc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+9527
-662
lines changed

.circleci/config.yml

+25-22
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ orbs:
55
executors:
66
golang:
77
docker:
8-
- image: cimg/go:1.21
8+
- image: cimg/go:1.23
99

1010
commands:
1111
make:
@@ -61,15 +61,31 @@ jobs:
6161
paths:
6262
- ".git"
6363

64+
tidy-go:
65+
executor: golang
66+
steps:
67+
- checkout
68+
- run:
69+
name: Check go mod tidy
70+
# Use --diff when available (Go 1.23)
71+
# https://github.com/golang/go/issues/27005
72+
command: |
73+
go mod tidy
74+
CHANGES_IN_REPO=$(git status --porcelain)
75+
if [[ -n "$CHANGES_IN_REPO" ]]; then
76+
echo "Repository is dirty. Showing 'git status' and 'git --no-pager diff' for debugging now:"
77+
git status && git --no-pager diff
78+
exit 1
79+
fi
80+
6481
lint:
6582
docker:
66-
- image: golangci/golangci-lint:v1.54.2
83+
- image: golangci/golangci-lint:v1.60.3
6784
steps:
6885
- checkout
6986
- run:
7087
name: Lint
7188
command: |
72-
golangci-lint run --version
7389
golangci-lint run --tests=false --timeout=5m0s
7490
7591
test-cover:
@@ -227,31 +243,17 @@ jobs:
227243
228244
release-tagged:
229245
executor: golang
230-
environment:
231-
BUILD_DIR: /tmp/workspace
232246
steps:
233-
- attach_workspace:
234-
at: /tmp/workspace
235247
- checkout
236-
- setup_remote_docker:
237-
docker_layer_caching: true
238-
- run:
239-
name: Fetch static artifact
240-
command: docker create --name wasmd_temp "cosmwasm/wasmd:${CIRCLE_TAG}"; docker cp wasmd_temp:/usr/bin/wasmd ${BUILD_DIR}; docker rm -f wasmd_temp
241-
- run:
242-
name: gzip
243-
command: tar -zcvf ${BUILD_DIR}/wasmd-${CIRCLE_TAG}-linux-amd64.tar.gz -C ${BUILD_DIR} wasmd
244248
- gh/setup:
245-
token: GITHUB_CREDS
249+
token: WASMD_GITHUB_RELEASES_TOKEN
246250
- run:
247251
name: Create release
248252
command: |
249-
gh release create ${CIRCLE_TAG} ${BUILD_DIR}/wasmd-${CIRCLE_TAG}-linux-amd64.tar.gz \
253+
gh release create ${CIRCLE_TAG} \
250254
--title "$CIRCLE_TAG" \
251255
--draft \
252-
--notes "# Wasmd ${CIRCLE_TAG} Release
253-
See the [CHANGELOG](https://github.com/CosmWasm/wasmd/blob/${CIRCLE_TAG}/CHANGELOG.md) for details on the changes in this version.
254-
"
256+
--notes "See the [CHANGELOG](https://github.com/CosmWasm/wasmd/blob/${CIRCLE_TAG}/CHANGELOG.md) for details on the changes in this version."
255257
256258
workflows:
257259
test-suite:
@@ -275,6 +277,9 @@ workflows:
275277
tags:
276278
only:
277279
- /^v.*/
280+
- tidy-go:
281+
requires:
282+
- setup-dependencies
278283
- lint:
279284
requires:
280285
- setup-dependencies
@@ -294,8 +299,6 @@ workflows:
294299
requires:
295300
- setup-dependencies
296301
- release-tagged:
297-
requires:
298-
- docker-tagged
299302
filters:
300303
tags:
301304
only:

.github/workflows/autofix.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: autofix.ci # needed to securely identify the workflow
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
autofix-protobuf:
11+
runs-on: ubuntu-latest
12+
container:
13+
image: ghcr.io/cosmos/proto-builder:0.14.0
14+
options: --user root # workaround for a problem during actions/checkout, see https://github.com/actions/checkout/issues/1014
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Fix permissions # needed because of root user fix above
18+
run: git config --global --add safe.directory "$PWD"
19+
- name: Format protobuf
20+
run: find ./ -name "*.proto" -exec clang-format -i {} \;
21+
- name: Generate protobuf
22+
run: sh ./scripts/protocgen.sh
23+
- name: Format
24+
run: make format
25+
26+
# Get latest version from https://autofix.ci/setup
27+
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Protobuf Linting
2+
# run buf lint (https://buf.build/)
3+
# This workflow is only run when a .proto file has been changed
4+
on:
5+
pull_request:
6+
paths:
7+
- "proto/**"
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
buf-lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: bufbuild/[email protected]
18+
19+
# lint checks
20+
- uses: bufbuild/buf-lint-action@v1
21+
with:
22+
input: "proto"

.github/workflows/proto-buf-publisher.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
20-
- uses: bufbuild/buf-setup-action@v1.30.1
20+
- uses: bufbuild/buf-setup-action@v1.47.2
2121

2222
# lint checks
2323
- uses: bufbuild/buf-lint-action@v1

.github/workflows/typo-check.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Check for typos
2+
3+
on:
4+
merge_group:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
workflow_dispatch:
10+
11+
jobs:
12+
check-typos:
13+
name: "Spell-check repository source"
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
- name: Run spell-check
19+
uses: crate-ci/typos@master

0 commit comments

Comments
 (0)