mirror of
https://github.com/astral-sh/uv
synced 2026-06-21 13:47:25 +00:00
Add workload target caches for srs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user