From 814b4d159c22093d1ad785428c64d824c47066cf Mon Sep 17 00:00:00 2001 From: Jo <10510431+j178@users.noreply.github.com> Date: Thu, 7 Nov 2024 00:22:13 +0800 Subject: [PATCH] Add MSRV build to CI (#8855) ## Summary Closes #8451 --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9f3fe09c..e71594dbb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -553,6 +553,28 @@ jobs: path: ${{ env.UV_WORKSPACE }}/target/debug/uv.exe retention-days: 1 + cargo-build-msrv: + name: "cargo build (msrv)" + needs: determine_changes + if: ${{ github.repository == 'astral-sh/uv' && (needs.determine_changes.outputs.code == 'true' || github.ref == 'refs/heads/main') }} + runs-on: + labels: ubuntu-latest-large + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4 + - uses: SebRollen/toml-action@v1.2.0 + id: msrv + with: + file: "Cargo.toml" + field: "workspace.package.rust-version" + - name: "Install Rust toolchain" + run: rustup default ${{ steps.msrv.outputs.value }} + - name: "Install mold" + uses: rui314/setup-mold@v1 + - uses: Swatinem/rust-cache@v2 + - run: cargo +${{ steps.msrv.outputs.value }} build + - run: ./target/debug/uv --version + build-binary-freebsd: needs: determine_changes timeout-minutes: 10