Verify generic sccache action
All checks were successful
Rust Build / build (push) Successful in 41s
All checks were successful
Rust Build / build (push) Successful in 41s
This commit is contained in:
@@ -17,14 +17,25 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: https://gitea.com/actions/checkout@v4
|
uses: https://gitea.com/actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Rust + Cache
|
- name: Setup Rust + sccache
|
||||||
id: rust
|
id: rust
|
||||||
uses: https://git.ericxliu.me/eric/actions-rust/.gitea/actions/rust-cache@main
|
uses: https://git.ericxliu.me/eric/actions-rust/.gitea/actions/rust-cache@main
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
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
|
- name: Build
|
||||||
run: cargo build --verbose
|
run: cargo build --verbose
|
||||||
|
|
||||||
- name: Run
|
- name: Run
|
||||||
run: cargo run
|
run: cargo run
|
||||||
|
|
||||||
|
- name: Show sccache stats
|
||||||
|
if: always()
|
||||||
|
run: sccache --show-stats || true
|
||||||
|
|||||||
Reference in New Issue
Block a user