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