Add workload target caches for srs

This commit is contained in:
Zanie Blue
2026-06-18 12:05:44 -05:00
parent 97184b7123
commit 21938a0807
7 changed files with 42 additions and 0 deletions
+10
View File
@@ -99,6 +99,8 @@ jobs:
runs-on: depot-ubuntu-24.04-4
if: ${{ github.repository == 'astral-sh/uv' }}
timeout-minutes: 30
env:
RUSTFLAGS: -Zcodegen-backend=llvm
steps:
- name: "Checkout Branch"
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
@@ -110,6 +112,9 @@ jobs:
uses: ./.github/actions/setup-srs
with:
artifact-cache-scope: depot-linux-bench
target-path: |
${{ github.workspace }}/target/debug
${{ github.workspace }}/target/profiling
- name: "Install Rust toolchain"
run: rustup show
@@ -144,3 +149,8 @@ jobs:
artifact-cache-hit: ${{ steps.srs.outputs.artifact-cache-hit }}
artifact-cache-primary-key: ${{ steps.srs.outputs.artifact-cache-primary-key }}
save-artifact-cache: "true"
target-cache-hit: ${{ steps.srs.outputs.target-cache-hit }}
target-cache-primary-key: ${{ steps.srs.outputs.target-cache-primary-key }}
target-path: |
${{ github.workspace }}/target/debug
${{ github.workspace }}/target/profiling
+4
View File
@@ -29,6 +29,7 @@ jobs:
uses: ./.github/actions/setup-srs
with:
artifact-cache-scope: github-linux-no-debug
target-path: ${{ github.workspace }}/target/no-debug
- name: "Build"
run: cargo build --profile no-debug
@@ -48,6 +49,9 @@ jobs:
artifact-cache-hit: ${{ steps.srs.outputs.artifact-cache-hit }}
artifact-cache-primary-key: ${{ steps.srs.outputs.artifact-cache-primary-key }}
save-artifact-cache: "true"
target-cache-hit: ${{ steps.srs.outputs.target-cache-hit }}
target-cache-primary-key: ${{ steps.srs.outputs.target-cache-primary-key }}
target-path: ${{ github.workspace }}/target/no-debug
build-binary-linux-aarch64:
name: "linux aarch64"
+14
View File
@@ -1,5 +1,10 @@
on:
workflow_call:
inputs:
save-rust-cache:
required: false
type: string
default: "true"
permissions: {}
@@ -23,6 +28,7 @@ jobs:
uses: ./.github/actions/setup-srs
with:
artifact-cache-scope: github-linux-dev
target-path: ${{ github.workspace }}/target/debug
- name: "Generate reference documentation"
run: |
cargo dev generate-options-reference
@@ -31,3 +37,11 @@ jobs:
- name: "Build docs"
run: uv run --only-group docs mkdocs build --strict -f mkdocs.yml
- name: "Save srs build cache"
if: ${{ inputs.save-rust-cache == 'true' }}
uses: ./.github/actions/save-srs-cache
with:
target-cache-hit: ${{ steps.srs.outputs.target-cache-hit }}
target-cache-primary-key: ${{ steps.srs.outputs.target-cache-primary-key }}
target-path: ${{ github.workspace }}/target/debug
@@ -37,6 +37,7 @@ jobs:
uses: ./.github/actions/setup-srs
with:
artifact-cache-scope: github-linux-dev
target-path: ${{ github.workspace }}/target/debug
- name: "Generate all"
run: cargo dev generate-all --mode dry-run
- name: "Check sysconfig mappings"
@@ -53,3 +54,6 @@ jobs:
artifact-cache-hit: ${{ steps.srs.outputs.artifact-cache-hit }}
artifact-cache-primary-key: ${{ steps.srs.outputs.artifact-cache-primary-key }}
save-artifact-cache: "true"
target-cache-hit: ${{ steps.srs.outputs.target-cache-hit }}
target-cache-primary-key: ${{ steps.srs.outputs.target-cache-primary-key }}
target-path: ${{ github.workspace }}/target/debug
+4
View File
@@ -109,6 +109,7 @@ jobs:
uses: ./.github/actions/setup-srs
with:
artifact-cache-scope: github-linux-clippy
target-path: ${{ github.workspace }}/target/debug
- name: "Install Rust toolchain"
run: rustup show
- name: "Clippy"
@@ -120,6 +121,9 @@ jobs:
artifact-cache-hit: ${{ steps.srs.outputs.artifact-cache-hit }}
artifact-cache-primary-key: ${{ steps.srs.outputs.artifact-cache-primary-key }}
save-artifact-cache: "true"
target-cache-hit: ${{ steps.srs.outputs.target-cache-hit }}
target-cache-primary-key: ${{ steps.srs.outputs.target-cache-primary-key }}
target-path: ${{ github.workspace }}/target/debug
clippy-windows:
name: "clippy on windows"
timeout-minutes: 15
+2
View File
@@ -161,6 +161,8 @@ jobs:
needs: plan
if: ${{ needs.plan.outputs.run-checks == 'true' }}
uses: ./.github/workflows/check-docs.yml
with:
save-rust-cache: ${{ needs.plan.outputs.save-rust-cache }}
secrets: inherit
check-zizmor:
+4
View File
@@ -38,6 +38,7 @@ jobs:
uses: ./.github/actions/setup-srs
with:
artifact-cache-scope: depot-linux-test
target-path: ${{ github.workspace }}/target/fast-build
- name: "Install Rust toolchain"
run: rustup show
@@ -133,6 +134,9 @@ jobs:
artifact-cache-hit: ${{ steps.srs.outputs.artifact-cache-hit }}
artifact-cache-primary-key: ${{ steps.srs.outputs.artifact-cache-primary-key }}
save-artifact-cache: "true"
target-cache-hit: ${{ steps.srs.outputs.target-cache-hit }}
target-cache-primary-key: ${{ steps.srs.outputs.target-cache-primary-key }}
target-path: ${{ github.workspace }}/target/fast-build
cargo-test-macos:
timeout-minutes: 30