Skip to content

Commit 0924b95

Browse files
authored
[compiler-v2]update build test (#4344)
* revert build_test.yml * fix clippy * update build_test.yml * update clippy
1 parent 33f24ee commit 0924b95

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

.github/workflows/build_test.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,25 @@ jobs:
2828
command: clean
2929
- name: run cargo check
3030
uses: actions-rs/cargo@v1
31+
env:
32+
RUSTFLAGS: -D warnings
3133
with:
3234
command: clippy
3335
args: --all-targets
36+
- name: build
37+
uses: actions-rs/cargo@v1
38+
with:
39+
command: build
40+
args: --all
3441
- name: test
3542
run: ./scripts/nextest.sh
43+
# - name: check changed files
44+
# run: bash ./scripts/changed_files.sh
45+
- name: Doc Tests
46+
uses: actions-rs/cargo@v1
47+
with:
48+
command: test
49+
args: --doc
3650
- name: integration test dev environment
3751
env:
3852
RUST_LOG: info
@@ -41,4 +55,4 @@ jobs:
4155
uses: actions-rs/cargo@v1
4256
with:
4357
command: test
44-
args: --test integration -- -e cmd
58+
args: --test integration -- -e cmd

vm/gas-algebra/src/abstract_algebra.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,16 +275,16 @@ where
275275
#[inline]
276276
fn evaluate(&self, feature_version: u64, env: &E) -> GasQuantity<Self::Unit> {
277277
match self {
278-
Either::Left(left) => left.evaluate(feature_version, env),
279-
Either::Right(right) => right.evaluate(feature_version, env),
278+
Self::Left(left) => left.evaluate(feature_version, env),
279+
Self::Right(right) => right.evaluate(feature_version, env),
280280
}
281281
}
282282

283283
#[inline]
284284
fn visit(&self, visitor: &mut impl GasExpressionVisitor) {
285285
match self {
286-
Either::Left(left) => left.visit(visitor),
287-
Either::Right(right) => right.visit(visitor),
286+
Self::Left(left) => left.visit(visitor),
287+
Self::Right(right) => right.visit(visitor),
288288
}
289289
}
290290
}

vm/move-package-manager/src/package.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ pub fn handle_package_commands(
6868
extended_checks::configure_extended_checks_for_unit_test();
6969

7070
let mut build_config = move_args.build_config.clone();
71-
build_config.compiler_config.known_attributes =
72-
extended_checks::get_all_attribute_names().clone();
71+
build_config
72+
.compiler_config
73+
.known_attributes
74+
.clone_from(extended_checks::get_all_attribute_names());
7375
c.execute(
7476
move_args.package_path,
7577
build_config,

0 commit comments

Comments
 (0)