diff --git a/.gitea/workflows/action.yml b/.gitea/workflows/action.yml index ef369de..91b1957 100644 --- a/.gitea/workflows/action.yml +++ b/.gitea/workflows/action.yml @@ -56,6 +56,17 @@ jobs: - name: Run Test DB Script run: ./test_db.sh + - name: Set up 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: Build run: | cargo build --release --target $CARGO_TARGET @@ -95,6 +106,17 @@ jobs: - name: Run Test DB Script run: ./test_db.sh + + - name: Set up 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: Build run: |