From b4c25373a715f7ca0384471c5740e3d57cef6b26 Mon Sep 17 00:00:00 2001 From: Denis Gorbachev <829578+DenisGorbachev@users.noreply.github.com> Date: Mon, 29 Jul 2024 08:27:32 +0700 Subject: [PATCH] ci: improve caching --- .github/workflows/ci.yml | 7 +++---- install.sh | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c901cc7..f69fcd2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,22 +26,21 @@ jobs: with: toolchain: ${{ matrix.rust }} components: clippy, rustfmt - - - run: cargo install cargo-hack --locked - uses: taiki-e/install-action@nextest - uses: actions/setup-node@v4 with: node-version: lts/Iron # 20 + cache: 'npm' - uses: denoland/setup-deno@v1 with: deno-version: v1.45.x - - - uses: Swatinem/rust-cache@v2.7.3 - run: ./install.sh + - + uses: Swatinem/rust-cache@v2.7.3 - run: lefthook run --force pre-commit - diff --git a/install.sh b/install.sh index 23d48d8..b7aa253 100755 --- a/install.sh +++ b/install.sh @@ -10,6 +10,7 @@ npm install --global \ cargo install --git https://github.com/DenisGorbachev/cargo-doc2readme --branch dev cargo install cargo-machete +cargo install cargo-hack --locked # Install yj curl -L https://github.com/sclevine/yj/releases/download/v5.1.0/yj-linux-amd64 -o /tmp/yj