From ce48c97a945f87cc3b562ed6b8eb3049c0191b89 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Tue, 21 Jan 2025 14:40:07 -0600 Subject: [PATCH] Explicitly build `uvx` in CI --- .github/workflows/ci.yml | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75e446e974b0..10da04feb044 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -193,6 +193,9 @@ jobs: with: tool: cargo-nextest + - name: "Cargo build" + run: cargo build --profile test --bin uv --bin uvx + - name: "Cargo test" run: | cargo nextest run \ @@ -238,6 +241,9 @@ jobs: with: tool: cargo-nextest + - name: "Cargo build" + run: cargo build --profile test --bin uv --bin uvx + - name: "Cargo test" run: | cargo nextest run \ @@ -285,6 +291,9 @@ jobs: with: tool: cargo-nextest + - name: "Cargo build" + run: cargo build --profile test --bin uv --bin uvx + - name: "Cargo test" working-directory: ${{ env.UV_WORKSPACE }} env: @@ -451,7 +460,7 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: "Build" - run: cargo build --target x86_64-unknown-linux-musl + run: cargo build --target x86_64-unknown-linux-musl --bin uv --bin uvx - name: "Upload binary" uses: actions/upload-artifact@v4 @@ -473,13 +482,15 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: "Build" - run: cargo build + run: cargo build --bin uv --bin uvx - name: "Upload binary" uses: actions/upload-artifact@v4 with: name: uv-macos-aarch64-${{ github.sha }} - path: ./target/debug/uv + path: | + ./target/debug/uv + ./target/debug/uvx retention-days: 1 build-binary-macos-x86_64: @@ -495,13 +506,15 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: "Build" - run: cargo build + run: cargo build --bin uv --bin uvx - name: "Upload binary" uses: actions/upload-artifact@v4 with: name: uv-macos-x86_64-${{ github.sha }} - path: ./target/debug/uv + path: | + ./target/debug/uv + ./target/debug/uvx retention-days: 1 build-binary-windows: @@ -527,13 +540,15 @@ jobs: - name: "Build" working-directory: ${{ env.UV_WORKSPACE }} - run: cargo build + run: cargo build --bin uv --bin uvx - name: "Upload binary" uses: actions/upload-artifact@v4 with: name: uv-windows-${{ github.sha }} - path: ${{ env.UV_WORKSPACE }}/target/debug/uv.exe + path: | + ${{ env.UV_WORKSPACE }}/target/debug/uv.exe + ${{ env.UV_WORKSPACE }}/target/debug/uvx.exe retention-days: 1 cargo-build-msrv: