Use dev drive for trampoline CI to avoid timeout (#11015)

Sometimes that job is just slow:
https://github.com/astral-sh/uv/actions/runs/12996921221/job/36247398606
This commit is contained in:
konsti 2025-02-03 15:38:56 +01:00 committed by GitHub
parent f7c3f30a16
commit c54dbcbcc2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 5 deletions

View File

@ -351,28 +351,34 @@ jobs:
target-arch: ["x86_64", "i686"] target-arch: ["x86_64", "i686"]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Setup Dev Drive
run: ${{ github.workspace }}/.github/workflows/setup-dev-drive.ps1
# actions/checkout does not let us clone into anywhere outside ${{ github.workspace }}, so we have to copy the clone...
- name: Copy Git Repo to Dev Drive
run: |
Copy-Item -Path "${{ github.workspace }}" -Destination "${{ env.UV_WORKSPACE }}" -Recurse
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with: with:
workspaces: ${{ github.workspace }}/crates/uv-trampoline workspaces: ${{ env.UV_WORKSPACE }}/crates/uv-trampoline
- name: "Install Rust toolchain" - name: "Install Rust toolchain"
working-directory: ${{ github.workspace }}/crates/uv-trampoline working-directory: ${{ env.UV_WORKSPACE }}/crates/uv-trampoline
run: | run: |
rustup target add ${{ matrix.target-arch }}-pc-windows-msvc rustup target add ${{ matrix.target-arch }}-pc-windows-msvc
rustup component add rust-src --target ${{ matrix.target-arch }}-pc-windows-msvc rustup component add rust-src --target ${{ matrix.target-arch }}-pc-windows-msvc
- name: "Test committed binaries" - name: "Test committed binaries"
working-directory: ${{ github.workspace }} working-directory: ${{ env.UV_WORKSPACE }}
run: | run: |
rustup target add ${{ matrix.target-arch }}-pc-windows-msvc rustup target add ${{ matrix.target-arch }}-pc-windows-msvc
cargo test -p uv-trampoline-builder --target ${{ matrix.target-arch }}-pc-windows-msvc cargo test -p uv-trampoline-builder --target ${{ matrix.target-arch }}-pc-windows-msvc
# Build and copy the new binaries # Build and copy the new binaries
- name: "Build" - name: "Build"
working-directory: ${{ github.workspace }}/crates/uv-trampoline working-directory: ${{ env.UV_WORKSPACE }}/crates/uv-trampoline
run: | run: |
cargo build --target ${{ matrix.target-arch }}-pc-windows-msvc cargo build --target ${{ matrix.target-arch }}-pc-windows-msvc
cp target/${{ matrix.target-arch }}-pc-windows-msvc/debug/uv-trampoline-console.exe trampolines/uv-trampoline-${{ matrix.target-arch }}-console.exe cp target/${{ matrix.target-arch }}-pc-windows-msvc/debug/uv-trampoline-console.exe trampolines/uv-trampoline-${{ matrix.target-arch }}-console.exe
cp target/${{ matrix.target-arch }}-pc-windows-msvc/debug/uv-trampoline-gui.exe trampolines/uv-trampoline-${{ matrix.target-arch }}-gui.exe cp target/${{ matrix.target-arch }}-pc-windows-msvc/debug/uv-trampoline-gui.exe trampolines/uv-trampoline-${{ matrix.target-arch }}-gui.exe
- name: "Test new binaries" - name: "Test new binaries"
working-directory: ${{ github.workspace }} working-directory: ${{ env.UV_WORKSPACE }}
run: | run: |
# We turn off the default "production" test feature since these are debug binaries # We turn off the default "production" test feature since these are debug binaries
cargo test -p uv-trampoline-builder --target ${{ matrix.target-arch }}-pc-windows-msvc --no-default-features cargo test -p uv-trampoline-builder --target ${{ matrix.target-arch }}-pc-windows-msvc --no-default-features