From 28580c2f7949a30a8b5d93fc271da74c9ceda6a4 Mon Sep 17 00:00:00 2001 From: joii2020 Date: Thu, 21 Nov 2024 14:11:58 +0800 Subject: [PATCH] Update CI --- .github/workflows/rust.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9a5ff45..1cd5360 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -9,6 +9,10 @@ jobs: steps: - uses: actions/checkout@v1 + - name: Deps + run: | + wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 18 && rm llvm.sh + rustup target add riscv64imac-unknown-none-elf - name: Install Rust components run: rustup component add rustfmt clippy - name: Check format @@ -19,4 +23,7 @@ jobs: run: cargo build - name: Run cargo test run: cargo test --all - \ No newline at end of file + - name: Build native-simulator test contracts + run: cd tests/test-contracts && make build + - name: Run cargo test (with native-simulator) + run: cargo test --features="native-simulator" --all