-
Notifications
You must be signed in to change notification settings - Fork 99
Maintenance
Christoph Otter edited this page Feb 27, 2024
·
8 revisions
This page contains instructions for maintainer, not users.
- Set version of
cosmwasm-std
/cosmwasm-vm
inlibwasmvm/Cargo.toml
- Run
(cd libwasmvm && cargo check)
to updatelibwasmvm/Cargo.lock
- Update testing contracts:
(cd testdata && ./download_releases.sh v0.13.0)
- Run Rust tests:
(cd libwasmvm && cargo test)
- Run Go tests:
make build-rust && make test
(This will createlibwasmvm.*
files. Don't commit those)
- Merge all your work in main
export NEW_WASMVM_VERSION="1.2.1"
- If you do a major version bump: Go requires you to change the package suffix to
v2
/v3
/ ... and update all imports to that - Update version in
Cargo.toml
, update lockfile and commit to main:gsed -i -e "s/^version[[:space:]]*=[[:space:]]*.*$/version = \"$NEW_WASMVM_VERSION\"/" libwasmvm/Cargo.toml (cd libwasmvm && cargo check) git add libwasmvm/Cargo.* && git commit -m "Set libwasmvm version to $NEW_WASMVM_VERSION" git push
- Wait for the re-build of the shared libraries by the CI job deploy_to_git. This adds a [skip ci] Built release libraries commit. Pull latest main branch.
watch --interval 20 'git pull && git log'
-
git tag "v$NEW_WASMVM_VERSION"
, review everything andgit push --tags
Now the shared libraries are checked in at the new tag. A CI build is triggered by the tag, that creates a release including the static library build. Once the release is done, add some meaningful description to the release, as it is shown to people using dependabot. Especially consensus-breaking changes are of interest here.