diff --git a/.gitea/workflows/rust-cache-test.yml b/.gitea/workflows/rust-cache-test.yml index c923a74..02ef615 100644 --- a/.gitea/workflows/rust-cache-test.yml +++ b/.gitea/workflows/rust-cache-test.yml @@ -17,14 +17,25 @@ jobs: - name: Checkout code uses: https://gitea.com/actions/checkout@v4 - - name: Setup Rust + Cache + - name: Setup Rust + sccache id: rust uses: https://git.ericxliu.me/eric/actions-rust/.gitea/actions/rust-cache@main with: toolchain: stable + sccache-bucket: sccache + sccache-region: auto + sccache-endpoint: https://s3.ericxliu.me + sccache-key-prefix: rust-hello-world/${{ runner.os }}-${{ runner.arch }}/stable + env: + AWS_ACCESS_KEY_ID: ${{ secrets.SCCACHE_AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.SCCACHE_AWS_SECRET_ACCESS_KEY }} - name: Build run: cargo build --verbose - name: Run run: cargo run + + - name: Show sccache stats + if: always() + run: sccache --show-stats || true