Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[compiler-v2]update build test #4344

Merged
merged 4 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,25 @@ jobs:
command: clean
- name: run cargo check
uses: actions-rs/cargo@v1
env:
RUSTFLAGS: -D warnings
with:
command: clippy
args: --all-targets
- name: build
uses: actions-rs/cargo@v1
with:
command: build
args: --all
- name: test
run: ./scripts/nextest.sh
# - name: check changed files
# run: bash ./scripts/changed_files.sh
- name: Doc Tests
uses: actions-rs/cargo@v1
with:
command: test
args: --doc
- name: integration test dev environment
env:
RUST_LOG: info
Expand All @@ -41,4 +55,4 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
args: --test integration -- -e cmd
args: --test integration -- -e cmd
8 changes: 4 additions & 4 deletions vm/gas-algebra/src/abstract_algebra.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,16 +275,16 @@ where
#[inline]
fn evaluate(&self, feature_version: u64, env: &E) -> GasQuantity<Self::Unit> {
match self {
Either::Left(left) => left.evaluate(feature_version, env),
Either::Right(right) => right.evaluate(feature_version, env),
Self::Left(left) => left.evaluate(feature_version, env),
Self::Right(right) => right.evaluate(feature_version, env),
}
}

#[inline]
fn visit(&self, visitor: &mut impl GasExpressionVisitor) {
match self {
Either::Left(left) => left.visit(visitor),
Either::Right(right) => right.visit(visitor),
Self::Left(left) => left.visit(visitor),
Self::Right(right) => right.visit(visitor),
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions vm/move-package-manager/src/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ pub fn handle_package_commands(
extended_checks::configure_extended_checks_for_unit_test();

let mut build_config = move_args.build_config.clone();
build_config.compiler_config.known_attributes =
extended_checks::get_all_attribute_names().clone();
build_config
.compiler_config
.known_attributes
.clone_from(extended_checks::get_all_attribute_names());
c.execute(
move_args.package_path,
build_config,
Expand Down
Loading