From 0dc194ac8de34fddcaae7627206ad9816fab8e4d Mon Sep 17 00:00:00 2001 From: williamfzc <178894043@qq.com> Date: Thu, 18 Apr 2024 23:41:56 +0800 Subject: [PATCH] chore(ci): improve --- .github/workflows/cargo-test.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cargo-test.yml b/.github/workflows/cargo-test.yml index fcc81c6..89e8834 100644 --- a/.github/workflows/cargo-test.yml +++ b/.github/workflows/cargo-test.yml @@ -18,6 +18,13 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: '0' + - name: Cache Cargo dependencies + uses: actions/cache@v2 + with: + path: ~/.cargo + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo- - name: Build run: cargo build --verbose - name: Run tests @@ -35,13 +42,13 @@ jobs: cp ./target/debug/gossiphs ./gossiphs cd tree-sitter - ../gossiphs interactive --dry + time ../gossiphs interactive --dry cd .. cd typescript-eslint - ../gossiphs interactive --dry + time ../gossiphs interactive --dry cd .. cd gin - ../gossiphs interactive --dry + time ../gossiphs interactive --dry cd ..