mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-12 21:01:01 +00:00
@@ -16,15 +16,29 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install solc
|
||||||
|
run: |
|
||||||
|
mkdir -p solc
|
||||||
|
curl -sSL --output solc/solc https://github.com/ethereum/solidity/releases/download/v0.8.25/solc-static-linux
|
||||||
|
chmod +x solc/solc
|
||||||
|
echo "$(pwd)/solc/" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Install LLVM
|
- name: Install LLVM
|
||||||
run: curl -sSL --output llvm.tar.xz https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.4/clang+llvm-18.1.4-x86_64-linux-gnu-ubuntu-18.04.tar.xz
|
run: |
|
||||||
- name: Extract LLVM
|
curl -sSL --output llvm.tar.xz https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.4/clang+llvm-18.1.4-x86_64-linux-gnu-ubuntu-18.04.tar.xz
|
||||||
run: tar Jxf llvm.tar.xz
|
tar Jxf llvm.tar.xz
|
||||||
- name: Add LLVM to Path
|
mv clang+llvm-18.1.4-x86_64-linux-gnu-ubuntu-18.04 llvm18/
|
||||||
run: echo "$(pwd)/clang+llvm-18.1.4-x86_64-linux-gnu-ubuntu-18.04/bin" >> $GITHUB_PATH
|
echo "$(pwd)/llvm18/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
|
- name: Install apt dependencies
|
||||||
|
run: sudo apt update && sudo apt install -y libtinfo5
|
||||||
|
|
||||||
- name: Format
|
- name: Format
|
||||||
run: make format
|
run: make format
|
||||||
|
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
run: make clippy
|
run: make clippy
|
||||||
|
|
||||||
- name: Integration
|
- name: Integration
|
||||||
run: make test-integration
|
run: make test-integration
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|

|
||||||
|
|
||||||
# revive
|
# revive
|
||||||
|
|
||||||
YUL and EVM bytecode recompiler to LLVM, targetting RISC-V on PolkaVM.
|
YUL and EVM bytecode recompiler to LLVM, targetting RISC-V on PolkaVM.
|
||||||
|
|||||||
@@ -13,9 +13,12 @@ fn main() {
|
|||||||
.read_to_string(&mut llvm_lib_dir)
|
.read_to_string(&mut llvm_lib_dir)
|
||||||
.expect("llvm-config output should be utf8");
|
.expect("llvm-config output should be utf8");
|
||||||
|
|
||||||
let lib_path = std::path::PathBuf::from(llvm_lib_dir.trim())
|
let mut lib_path = std::path::PathBuf::from(llvm_lib_dir.trim())
|
||||||
.join("linux")
|
.join("linux")
|
||||||
.join(lib);
|
.join(lib);
|
||||||
|
if !lib_path.exists() {
|
||||||
|
lib_path = std::path::PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").unwrap()).join(lib);
|
||||||
|
}
|
||||||
let archive = fs::read(lib_path).expect("clang builtins for riscv32 not found");
|
let archive = fs::read(lib_path).expect("clang builtins for riscv32 not found");
|
||||||
|
|
||||||
let out_dir = env::var_os("OUT_DIR").expect("has OUT_DIR");
|
let out_dir = env::var_os("OUT_DIR").expect("has OUT_DIR");
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user