diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index c62fe1b..7d1b0c8 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -8,6 +8,7 @@ on: branches: [main] env: + CARGO_INCREMENTAL: "0" RUSTC_WRAPPER: sccache SCCACHE_BUCKET: sccache SCCACHE_ENDPOINT: http://caveman.kosherinata.internal:9000 @@ -23,6 +24,19 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Cache cargo registry and target + uses: actions/cache@v4 + 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: Ensure sccache with S3 support env: RUSTC_WRAPPER: "" @@ -39,9 +53,6 @@ jobs: - name: Clippy run: cargo clippy --workspace -- -D warnings - - name: Build - run: cargo build --workspace - - name: Test run: cargo test --workspace