From 01e3aafa37243205fe39c1c8a5d6c80a021475d6 Mon Sep 17 00:00:00 2001 From: Mads Mogensen Date: Fri, 5 Apr 2024 14:23:29 +0200 Subject: [PATCH] workflows: fix rust cache --- .github/workflows/backend.yml | 3 +++ .github/workflows/frontend.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index cf2c560d..513c341a 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -25,6 +25,9 @@ jobs: steps: - uses: actions/checkout@v3 - uses: Swatinem/rust-cache@v2 + with: + workspaces: "backend -> target" + cache-all-crates: true - name: Install sqlx-cli run: cargo install sqlx-cli --no-default-features --features sqlite - name: Setup local db diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 7eb742fb..d77cd90f 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -35,6 +35,9 @@ jobs: - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 - uses: Swatinem/rust-cache@v2 + with: + workspaces: "backend -> target" + cache-all-crates: true - name: Run backend for testing run: | cargo install sqlx-cli --no-default-features --features sqlite