From 0678c21e091d4c4032ffe310976668477b145be8 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Thu, 6 Oct 2022 15:42:46 +0200 Subject: add cargo cache to test build --- .github/workflows/rust-tests.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/rust-tests.yml b/.github/workflows/rust-tests.yml index ab3a7eb..fa6ea57 100644 --- a/.github/workflows/rust-tests.yml +++ b/.github/workflows/rust-tests.yml @@ -23,9 +23,20 @@ jobs: - name: Setup tests run: | docker pull python:3.10-slim-buster + + - name: Cargo cache + uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Test run: | cd planetwars-matchrunner cargo check - cargo test --all \ No newline at end of file + cargo test \ No newline at end of file -- cgit v1.2.3