From bb708b54fa2e18c629f7a81a0d2284644f6b42aa Mon Sep 17 00:00:00 2001 From: "sm.wu" Date: Fri, 6 Sep 2024 12:07:50 +0800 Subject: [PATCH] reuse cache result from cargo --- .github/workflows/lints.yml | 2 +- .github/workflows/tests.yml | 4 ++-- Makefile.toml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lints.yml b/.github/workflows/lints.yml index bf3e1455a..8d8ad0fb4 100644 --- a/.github/workflows/lints.yml +++ b/.github/workflows/lints.yml @@ -59,7 +59,7 @@ jobs: - name: Install cargo make run: | - cargo install --force cargo-make + cargo install cargo-make - name: Check code format uses: actions-rs/cargo@v1 with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ab68b9bb2..27bfd6391 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -54,11 +54,11 @@ jobs: - name: Install cargo make run: | - cargo install --force cargo-make + cargo install cargo-make - name: run test uses: actions-rs/cargo@v1 env: - TAEGET: ${{ matrix.target }} + TARGET: ${{ matrix.target }} with: command: make args: tests \ No newline at end of file diff --git a/Makefile.toml b/Makefile.toml index 6f3c7c436..60864bade 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -5,7 +5,7 @@ RAYON_NUM_THREADS = "${CORE}" [tasks.tests] command = "cargo" -args = ["test", "--lib", "--release", "--target", "${CARGO_MAKE_ENV_TARGET}", "--workspace", "--exclude", "singer-pro", "--exclude", "ceno_rt"] +args = ["test", "--lib", "--release", "--target", "${TARGET}", "--workspace", "--exclude", "singer-pro", "--exclude", "ceno_rt"] [tasks.fmt-check] command = "cargo" @@ -25,4 +25,4 @@ args = ["fmt", "-p", "ceno_zkvm", "--", "--check"] [tasks.clippy-check-selected-packages] command = "cargo" -args = ["clippy", "-p", "ceno_zkvm", "--target", "${CARGO_MAKE_ENV_TARGET}", "--", "-D", "warnings"] +args = ["clippy", "-p", "ceno_zkvm", "--target", "${TARGET}", "--", "-D", "warnings"]