Skip to content

Commit

Permalink
do not save latest stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
pause125 committed Dec 2, 2023
1 parent 4eaeb79 commit 4af7daa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crates/rooch-framework-release/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ Rooch stdlib include the MoveOS standard library and Rooch framework.

This crate is used to compile the moveos-stdlib and rooch-framework, and then generate the compiled Move bytecode, documentation, and error descriptions for use by the Move Explain tool.

## Compile, check compatibility and save the latest stdlib
## Compile, check compatibility with previous version

1. Compile

```bash
cargo run --package rooch-framework-release --bin rooch-framework-release
```

This command will compile the moveos-stdlib and rooch-framework, and then check the compatibility with previous one (if exists), and finally save the new compiled stdlib.
This command will compile the latest moveos-stdlib and rooch-framework, and then check the compatibility with previous one (if exists).

## Release a new version

Expand Down
Binary file not shown.
10 changes: 7 additions & 3 deletions crates/rooch-framework-release/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,13 @@ fn main() {
assert_stdlib_compatibility(&curr_stdlib, &prev_stdlib);
}
}
curr_stdlib
.save_to_file(stdlib_output_file(&version.as_string()))
.unwrap();

// Only save the stdlib with given version number
if version != StdlibVersion::Latest {
curr_stdlib
.save_to_file(stdlib_output_file(&version.as_string()))
.unwrap();
}
}

/// Check whether the new stdlib is compatible with the old stdlib
Expand Down

0 comments on commit 4af7daa

Please sign in to comment.