mirror of
https://github.com/fluencelabs/aquavm
synced 2025-03-15 20:40:50 +00:00
feat(air-interpreter)!: enable signature generation and verification features (#731)
Make `gen_signatures` and `check_signature` features default. This will be the first release with both features enabled.
This commit is contained in:
parent
776d81a1db
commit
635352bc5d
7
.github/workflows/tests.yml
vendored
7
.github/workflows/tests.yml
vendored
@ -54,7 +54,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run cargo nextest
|
- name: Run cargo nextest
|
||||||
# It should have "--all-features", but it is temporarly disabled because of the signature-related feature flags
|
# It should have "--all-features", but it is temporarly disabled because of the signature-related feature flags
|
||||||
run: cargo llvm-cov nextest --features test_with_native_code --release --profile ci --lcov --output-path lcov.info
|
run: cargo llvm-cov nextest --no-default-features --features test_with_native_code --release --profile ci --lcov --output-path lcov.info
|
||||||
|
|
||||||
- name: Coveralls upload
|
- name: Coveralls upload
|
||||||
if: inputs.cargo-dependencies == 'null'
|
if: inputs.cargo-dependencies == 'null'
|
||||||
@ -83,14 +83,15 @@ jobs:
|
|||||||
RUST_TEST_THREADS: 1
|
RUST_TEST_THREADS: 1
|
||||||
run: |
|
run: |
|
||||||
# The `memory` sanitizer on cargo test has false positive even on empty project.
|
# The `memory` sanitizer on cargo test has false positive even on empty project.
|
||||||
|
# It shouldn't have `--no-default-features`, but it has until legacy tests will work with signatures enabled.
|
||||||
for san in address leak; do
|
for san in address leak; do
|
||||||
RUSTFLAGS="$RUSTFLAGS -Z sanitizer=$san" cargo test --features test_with_native_code --target x86_64-unknown-linux-gnu
|
RUSTFLAGS="$RUSTFLAGS -Z sanitizer=$san" cargo test --no-default-features --features test_with_native_code --target x86_64-unknown-linux-gnu
|
||||||
done
|
done
|
||||||
- name: Run signature tests with test_with_native_code
|
- name: Run signature tests with test_with_native_code
|
||||||
env:
|
env:
|
||||||
RUST_TEST_THREADS: 1
|
RUST_TEST_THREADS: 1
|
||||||
run: |
|
run: |
|
||||||
# Temporary solution until signatures works: it depends on other PRs
|
# Temporary solution until legacy tests work with signatures.
|
||||||
cargo test --features test_with_native_code,gen_signatures,check_signatures --target x86_64-unknown-linux-gnu features::signatures
|
cargo test --features test_with_native_code,gen_signatures,check_signatures --target x86_64-unknown-linux-gnu features::signatures
|
||||||
|
|
||||||
- name: Check native aquavm-air-cli
|
- name: Check native aquavm-air-cli
|
||||||
|
@ -40,3 +40,4 @@ marine = []
|
|||||||
gen_signatures = ["aquavm-air/gen_signatures"]
|
gen_signatures = ["aquavm-air/gen_signatures"]
|
||||||
check_signatures = ["aquavm-air/check_signatures"]
|
check_signatures = ["aquavm-air/check_signatures"]
|
||||||
|
|
||||||
|
default = ["check_signatures", "gen_signatures"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user