From 4f5873f49ba96eefb748d0ae18324e0f43754168 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sat, 6 Jan 2024 14:17:27 +0100 Subject: [PATCH] Try using a cache --- .gitea/workflows/gitea-ci.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitea/workflows/gitea-ci.yaml b/.gitea/workflows/gitea-ci.yaml index bcb2a69..d71b635 100644 --- a/.gitea/workflows/gitea-ci.yaml +++ b/.gitea/workflows/gitea-ci.yaml @@ -15,13 +15,27 @@ jobs: container: docker.io/drrobot/musichoard-ci:rust-1.75 steps: - uses: actions/checkout@v3 + - uses: actions/cache/restore@v3 + with: + path: target + key: cargo-target - run: cargo build --verbose --all-features --all-targets - run: cargo test --verbose --all-features --all-targets --no-fail-fast + - uses: actions/cache/save@v3 + with: + path: target + key: cargo-target + + lint: name: Lint container: docker.io/drrobot/musichoard-ci:rust-1.75 steps: - uses: actions/checkout@v3 + - uses: actions/cache/restore@v3 + with: + path: target + key: cargo-target - run: cargo clippy --verbose --all-features --all-targets -- -D warnings - run: cargo fmt --verbose -- --check