Skip to content

Commit

Permalink
build: set version to 1.1.1+0.11.5 for applying v1.1.9+0.8.1 (#128)
Browse files Browse the repository at this point in the history
* build: version bump to v1.1.1-0.11.5

* build: build libwasmvm

* docs: update CHANGELOG

* fix: typo

* fix: use v1.1.9+0.8.1 of cosmwasm

* fix: version bump to v1.1.1+0.11.5

- fix test
- fix ci

* docs: update CHANGELOG

* build: build libwasmvm

* fix: fix to use + instead of -
  • Loading branch information
da1suk8 authored Oct 12, 2023
1 parent f3de0bc commit a4dbac7
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
id: get-package-version
working-directory: ./libwasmvm
run: |
VERSION=$(cargo tree -i wasmvm | grep -oE "[0-9]+(\.[0-9]+){2}-[0-9]+(\.[0-9]+){2}(-[0-9a-zA-Z.]+)*(\+[0-9a-zA-Z.\-]+)*")
VERSION=$(cargo tree -i wasmvm | grep -oE "[0-9]+(\.[0-9]+){2}[\+\-][0-9]+(\.[0-9]+){2}(-[0-9a-zA-Z.]+)*(\+[0-9a-zA-Z.\-]+)*")
echo ::set-output name=version::v$VERSION
push-tag: # if the version does not exist as git tag, push it
Expand Down
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# Changelog

## [[1.1.1+0.11.5](https://github.com/Finschia/wasmvm/compare/v1.1.1-0.11.4-rc1...v1.1.1+0.11.5)] - 2023-10-5
### Changes
* set version to 1.1.1+0.11.5 for applying v1.1.9+0.8.1 ([#128](https://github.com/Finschia/wasmvm/pull/128))
* add an automatic build shared library c ([#119](https://github.com/Finschia/wasmvm/pull/119))

## Fixes
* hotfix automatic build shared library ci ([#127](https://github.com/Finschia/wasmvm/pull/127))

## [[1.1.1-0.11.4-rc1](https://github.com/Finschia/wasmvm/compare/v1.1.1-0.11.3-rc1...1.1.1-0.11.4-rc1)] - 2023-08-25
## [[1.1.1-0.11.4-rc1](https://github.com/Finschia/wasmvm/compare/v1.1.1-0.11.3-rc1...v1.1.1-0.11.4-rc1)] - 2023-08-25
### Changes
* bumpup version to 1.1.1-0.11.4-rc1 ([#126](https://github.com/Finschia/wasmvm/pull/125))

Expand Down
2 changes: 1 addition & 1 deletion devtools/set_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if [[ -n "$CHANGES_IN_REPO" ]]; then
fi

NEW="$1"
OLD=$(cargo tree -i wasmvm --manifest-path libwasmvm/Cargo.toml | grep -oE "[0-9]+(\.[0-9]+){2}-[0-9]+(\.[0-9]+){2}(-[0-9a-zA-Z.]+)*(\+[0-9a-zA-Z.\-]+)*")
OLD=$(cargo tree -i wasmvm --manifest-path libwasmvm/Cargo.toml | grep -oE "[0-9]+(\.[0-9]+){2}[\+\-][0-9]+(\.[0-9]+){2}(-[0-9a-zA-Z.]+)*(\+[0-9a-zA-Z.\-]+)*")
echo "Updating old version $OLD to new version $NEW ..."

CARGO_TOML="libwasmvm/Cargo.toml"
Expand Down
Binary file modified internal/api/libwasmvm.aarch64.so
Binary file not shown.
Binary file modified internal/api/libwasmvm.dylib
Binary file not shown.
Binary file modified internal/api/libwasmvm.x86_64.so
Binary file not shown.
2 changes: 1 addition & 1 deletion internal/api/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ import (
func TestLibwasmvmVersion(t *testing.T) {
version, err := LibwasmvmVersion()
require.NoError(t, err)
require.Regexp(t, regexp.MustCompile("^([0-9]+)\\.([0-9]+)\\.([0-9]+)(-[a-z0-9.\\-]+)?$"), version)
require.Regexp(t, regexp.MustCompile("^([0-9]+)\\.([0-9]+)\\.([0-9]+)([+-][a-z0-9.\\-]+)?$"), version)
}
2 changes: 1 addition & 1 deletion lib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,5 +281,5 @@ func TestGetMetrics(t *testing.T) {
func TestLibwasmvmVersion(t *testing.T) {
version, err := LibwasmvmVersion()
require.NoError(t, err)
require.Equal(t, "1.1.1-0.11.4-rc1", version)
require.Equal(t, "1.1.1+0.11.5", version)
}
18 changes: 9 additions & 9 deletions libwasmvm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions libwasmvm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasmvm"
version = "1.1.1-0.11.4-rc1"
version = "1.1.1+0.11.5"
publish = false
authors = ["Finschia Foundation"]
edition = "2021"
Expand Down Expand Up @@ -31,8 +31,8 @@ default = []
backtraces = []

[dependencies]
cosmwasm-std = { git = "https://github.com/Finschia/cosmwasm", rev = "6ea2dfb", features = ["iterator","staking","stargate"]}
cosmwasm-vm = { git = "https://github.com/Finschia/cosmwasm", rev = "6ea2dfb", features = ["iterator","staking","stargate"]}
cosmwasm-std = { git = "https://github.com/Finschia/cosmwasm", tag = "v1.1.9+0.8.1", features = ["iterator","staking","stargate"]}
cosmwasm-vm = { git = "https://github.com/Finschia/cosmwasm", tag = "v1.1.9+0.8.1", features = ["iterator","staking","stargate"]}
errno = "0.2"
serde_json = "1.0"
thiserror = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion libwasmvm/src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ mod tests {
let version_str = unsafe { CStr::from_ptr(version_ptr) }.to_str().unwrap();
// assert_eq!(version_str, "1.2.3");

let mut parts = version_str.split('-');
let mut parts = version_str.split('+');
let version_core = parts.next().unwrap();
let components = version_core.split('.').collect::<Vec<_>>();
assert_eq!(components.len(), 3);
Expand Down

0 comments on commit a4dbac7

Please sign in to comment.