Skip to content

Commit

Permalink
Explicitly build uvx in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Jan 21, 2025
1 parent 9dd1217 commit ce48c97
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit ce48c97

Please sign in to comment.