-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5729671
commit 518e74b
Showing
4 changed files
with
226 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
name: System Install | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
CARGO_INCREMENTAL: 0 | ||
CARGO_NET_RETRY: 10 | ||
CARGO_TERM_COLOR: always | ||
RUSTUP_MAX_RETRIES: 10 | ||
PYTHON_VERSION: "3.12" | ||
|
||
jobs: | ||
# Install Python on Ubuntu. | ||
install-ubuntu: | ||
name: "Install Python on Ubuntu" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: "Install Rust toolchain" | ||
run: rustup update | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
# with: | ||
# save-if: ${{ github.ref == 'refs/heads/main' }} | ||
|
||
- name: "Build" | ||
run: cargo build | ||
|
||
- name: "Validate global Python install" | ||
run: python3.12 check_system_python.py $(which python3.12) --uv ./target/debug/uv | ||
|
||
# Install Python on macOS. | ||
install-macos: | ||
name: "Install Python on macOS" | ||
runs-on: macos-14 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: "Install Python" | ||
run: brew install python@3.8 | ||
|
||
- name: "Install Rust toolchain" | ||
run: rustup update | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
# with: | ||
# save-if: ${{ github.ref == 'refs/heads/main' }} | ||
|
||
- name: "Build" | ||
run: cargo build | ||
|
||
- name: "Validate global Python install" | ||
run: python3.8 check_system_python.py $(which python3.8) --uv ./target/debug/uv | ||
|
||
# Install Python on Windows. | ||
install-windows: | ||
name: "Install Python on Windows" | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: "Install Python" | ||
run: choco install python | ||
|
||
# - name: "Install Rust toolchain" | ||
# run: rustup update | ||
# | ||
# - uses: Swatinem/rust-cache@v2 | ||
## with: | ||
## save-if: ${{ github.ref == 'refs/heads/main' }} | ||
# | ||
# - name: "Build" | ||
# run: cargo build | ||
|
||
# Print Python path. | ||
- name: "Print Python path" | ||
run: | | ||
echo "Python path: $(which python3.12)" | ||
# # Print uv path. | ||
# - name: "Print uv path" | ||
# run: | | ||
# echo "uv path: $(which ./target/debug/uv)" | ||
|
||
- name: "Validate global Python install" | ||
run: C:\ProgramData\Chocolatey\bin\python3.12 check_system_python.py C:\ProgramData\Chocolatey\bin\python3.12 --uv ./target/debug/uv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.