Skip to content

Commit

Permalink
[test-only] set v2 flag for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rahxephon89 committed Nov 26, 2024
1 parent 7b69d4c commit db094c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/actions/rust-targeted-unit-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ runs:
shell: bash
env:
INDEXER_DATABASE_URL: postgresql://postgres@localhost/postgres
MOVE_COMPILER_V2: true
MOVE_LANGUAGE_V2: true
RUST_MIN_STACK: "4297152"
MVP_TEST_ON_CI: "true"
SOLC_EXE: /home/runner/bin/solc
Expand Down
2 changes: 2 additions & 0 deletions aptos-move/e2e-move-tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ pub(crate) fn build_package(
let mut options = options;
if get_move_compiler_v2_from_env() {
options.compiler_version = Some(CompilerVersion::latest_stable());
options.language_version =
Some(CompilerVersion::latest_stable().infer_stable_language_version());
}
BuiltPackage::build(package_path.to_owned(), options)
}
Expand Down

0 comments on commit db094c9

Please sign in to comment.