diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index bd27de60a8..42620a0ce2 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -200,11 +200,6 @@ jobs: with: targets: ${{ matrix.target }} components: clippy - - uses: actions/setup-python@v6 - with: - python-version: "3.11" - - uses: astral-sh/setup-uv@v6 - - if: ${{ matrix.target == 'x86_64-unknown-linux-musl' || matrix.target == 'aarch64-unknown-linux-musl'}} name: Use hermetic Cargo home (musl) shell: bash @@ -244,6 +239,11 @@ jobs: restore-keys: | cargo-home-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }}- + - uses: actions/setup-python@v6 + with: + python-version: "3.11" + - uses: astral-sh/setup-uv@v6 + # Install and restore sccache cache - name: Install sccache if: ${{ env.USE_SCCACHE == 'true' }}