fix(air-trace): air-trace native-only compilation fix (#429)

It was not correctly refactored in the #381.
Add a CI check for the `air-trace` native-only mode.
This commit is contained in:
Ivan Boldyrev 2023-02-06 19:59:47 +07:00 committed by GitHub
parent ac24507171
commit c35eac0f01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 5 deletions

View File

@ -37,6 +37,9 @@ jobs:
- name: Run cargo check
run: cargo check
- name: Check native air-trace
run: cargo check --package air-trace --no-default-features
- name: Run cargo test
run: |
cargo test --release

2
Cargo.lock generated
View File

@ -225,7 +225,7 @@ dependencies = [
[[package]]
name = "air-trace"
version = "0.2.1"
version = "0.2.2"
dependencies = [
"air",
"air-interpreter-interface",

View File

@ -1,6 +1,6 @@
[package]
name = "air-trace"
version = "0.2.1"
version = "0.2.2"
edition = "2021"
description = "AIR performance tracing tool"
authors = ["Fluence Labs"]

View File

@ -130,12 +130,10 @@ fn get_runner(
#[cfg(not(feature = "wasm"))]
fn get_runner(
_native: bool,
current_peer_id: impl Into<String>,
_air_interpreter_wasm_path: &Path,
_max_heap_size: Option<u64>,
) -> anyhow::Result<Box<dyn AirRunner>> {
self::native::create_native_avm_runner(current_peer_id)
.context("Failed to instantiate a native AVM")
self::native::create_native_avm_runner().context("Failed to instantiate a native AVM")
}
// TODO This is a copy of function from air_interpreter/marine.rs. It should be moved to the marine_rs_sdk.