Run all tests on CI (#21)

Run all tests on CI

Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
Cyrill Leutwiler
2024-06-05 00:50:03 +02:00
committed by GitHub
parent d9a304d162
commit caa1228720
5 changed files with 15 additions and 8 deletions
+5 -2
View File
@@ -40,5 +40,8 @@ jobs:
- name: Clippy
run: make clippy
- name: Integration
run: make test-integration
- name: Test cargo workspace
run: make test-workspace
- name: Test CLI
run: make test-cli
+1 -1
View File
@@ -11,7 +11,7 @@ install-npm:
format:
cargo fmt --all --check
test: format install test-cli test-workspace
test: format clippy test-cli test-workspace
cargo test --workspace
test-integration: install-bin
+2 -1
View File
@@ -29,7 +29,8 @@ resolc --version
### Development
Please consult the [Makefile](Makefile) targets to learn how to run tests and benchmarks.
Please consult the [Makefile](Makefile) targets to learn how to run tests and benchmarks.
Ensure that your branch passes `make test` locally when submitting a pull request.
## Design overview
`revive` uses [solc](https://github.com/ethereum/solidity/), the Ethereum Solidity compiler, as the [Solidity frontend](crates/solidity/src/lib.rs) to process smart contracts written in Solidity. The YUL IR code (or legacy EVM assembly as a fallback for older `solc` versions) emitted by `solc` is then translated to LLVM IR, targetting a runtime similar to [Polkadots `contracts` pallet](https://docs.rs/pallet-contracts/latest/pallet_contracts/api_doc/trait.Current.html).
+3 -3
View File
@@ -1,10 +1,10 @@
{
"Baseline": 934,
"Computation": 4360,
"DivisionArithmetics": 39448,
"ERC20": 46512,
"DivisionArithmetics": 39824,
"ERC20": 46356,
"Events": 1749,
"FibonacciIterative": 2973,
"Flipper": 3549,
"SHA1": 32709
"SHA1": 32543
}
+4 -1
View File
@@ -27,7 +27,10 @@ fn set_rustc_link_flags() {
}
#[cfg(target_os = "linux")]
println!("cargo:rustc-link-lib=dylib=stdc++");
{
println!("cargo:rustc-link-lib=dylib=stdc++");
println!("cargo:rustc-link-lib=tinfo");
}
}
fn main() {