From 97154ef4b959bdac2b14abb5ee7b32d054bf694f Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 17 Jan 2024 19:28:13 +0100 Subject: [PATCH] try --- .gitea/workflows/action.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/action.yml b/.gitea/workflows/action.yml index 5ebb99d..9f92b6e 100644 --- a/.gitea/workflows/action.yml +++ b/.gitea/workflows/action.yml @@ -16,7 +16,6 @@ jobs: - uses: actions/checkout@v3 - name: Run Test DB Script run: ./test_db.sh - - name: Set up cargo cache uses: actions/cache@v3 with: @@ -25,9 +24,9 @@ jobs: ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ - target/ + target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - + restore-keys: ${{ runner.os }}-cargo- - name: Build run: | cargo build @@ -63,8 +62,9 @@ jobs: ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ - target/ + target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: ${{ runner.os }}-cargo- - name: Build run: | @@ -117,6 +117,19 @@ jobs: target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Set up cargo cache + uses: actions/cache@v3 + continue-on-error: false + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: ${{ runner.os }}-cargo- + - name: Build run: | cargo build --release --target $CARGO_TARGET