Skip to content

Commit b50cb3e

Browse files
authored
Add system install test for macOS x86_64 (#2459)
Adds binary builds for x86_64 macOS and a corresponding test
1 parent e9c12c5 commit b50cb3e

File tree

1 file changed

+50
-5
lines changed

1 file changed

+50
-5
lines changed

.github/workflows/ci.yml

Lines changed: 50 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ jobs:
157157
build-binary-macos-aarch64:
158158
runs-on:
159159
labels: macos-14
160-
name: "build binary | macos"
160+
name: "build binary | macos aarch64"
161161
steps:
162162
- uses: actions/checkout@v4
163163

@@ -174,6 +174,26 @@ jobs:
174174
path: ./target/debug/uv
175175
retention-days: 1
176176

177+
build-binary-macos-x86_64:
178+
runs-on:
179+
labels: macos-latest-large
180+
name: "build binary | macos x86_64"
181+
steps:
182+
- uses: actions/checkout@v4
183+
184+
- uses: rui314/setup-mold@v1
185+
186+
- uses: Swatinem/rust-cache@v2
187+
- name: "Build"
188+
run: cargo build
189+
190+
- name: "Upload binary"
191+
uses: actions/upload-artifact@v4
192+
with:
193+
name: uv-macos-x86_64-${{ github.sha }}
194+
path: ./target/debug/uv
195+
retention-days: 1
196+
177197
build-binary-windows:
178198
runs-on:
179199
labels: windows-latest-large
@@ -345,9 +365,9 @@ jobs:
345365
- name: "Validate global Python install"
346366
run: python3 scripts/check_system_python.py --uv ./uv --externally-managed
347367

348-
system-test-macos:
368+
system-test-macos-aarch64:
349369
needs: build-binary-macos-aarch64
350-
name: "check system | python on macos"
370+
name: "check system | python on macos aarch64"
351371
runs-on: macos-14
352372
steps:
353373
- uses: actions/checkout@v4
@@ -364,10 +384,35 @@ jobs:
364384
run: chmod +x ./uv
365385

366386
- name: "Print Python path"
367-
run: echo $(which python3.11)
387+
run: echo $(which python3)
388+
389+
- name: "Validate global Python install"
390+
run: python3 scripts/check_system_python.py --uv ./uv
391+
392+
system-test-macos-x86_64:
393+
needs: build-binary-macos-x86_64
394+
name: "check system | python on macos x86_64"
395+
runs-on: macos-latest
396+
steps:
397+
- uses: actions/checkout@v4
398+
399+
# We test with GitHub's Python as a regression test for
400+
# https://github.com/astral-sh/uv/issues/2450
401+
- uses: actions/setup-python@v5
402+
403+
- name: "Download binary"
404+
uses: actions/download-artifact@v4
405+
with:
406+
name: uv-macos-x86_64-${{ github.sha }}
407+
408+
- name: "Prepare binary"
409+
run: chmod +x ./uv
410+
411+
- name: "Print Python path"
412+
run: echo $(which python3)
368413

369414
- name: "Validate global Python install"
370-
run: python3.11 scripts/check_system_python.py --uv ./uv
415+
run: python3 scripts/check_system_python.py --uv ./uv
371416

372417
system-test-windows-python-310:
373418
needs: build-binary-windows

0 commit comments

Comments
 (0)