ci: share Rust build cache across jobs

pull/446/head
zijiren233 1 month ago
parent 7461dda264
commit 8ca6942cf3
No known key found for this signature in database
GPG Key ID: 534E082AAA9B39DC

@ -63,6 +63,8 @@ jobs:
- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@v2
with:
shared-key: proto-freshness
- name: Run Clippy
timeout-minutes: 60
@ -86,6 +88,8 @@ jobs:
- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@v2
with:
shared-key: proto-freshness
- name: Build
run: make build-workspace
@ -107,6 +111,8 @@ jobs:
- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@v2
with:
shared-key: proto-freshness
- name: Check generated proto artifacts
run: make proto-freshness
@ -129,6 +135,8 @@ jobs:
- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@v2
with:
shared-key: proto-freshness
- name: Check SQLx offline metadata
run: make check-all-targets
@ -173,6 +181,8 @@ jobs:
- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@v2
with:
shared-key: proto-freshness
- name: Run non-ignored tests with nextest
timeout-minutes: 60
@ -210,6 +220,8 @@ jobs:
- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@v2
with:
shared-key: proto-freshness
- name: Run ignored tests with nextest
timeout-minutes: 60
@ -287,6 +299,11 @@ jobs:
- name: Install build dependencies
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler nasm libclang-dev
- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@v2
with:
shared-key: proto-freshness
- name: Install cargo-udeps
run: make install-cargo-udeps

@ -52,6 +52,11 @@ jobs:
- name: Install build dependencies
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler nasm libclang-dev
- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@v2
with:
shared-key: proto-freshness
- name: Validate chart
run: make validate-helm

Loading…
Cancel
Save