Skip to content

Commit

Permalink
fix uv arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-sz committed Apr 21, 2024
1 parent d3a0737 commit 1b7e71a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,19 @@ jobs:
build:
- arch: 'x64'
type: 'cuda'
uv_args: ''
- arch: 'x64'
type: 'cpu'
uv_args: '--prerelease=allow'
- arch: 'x64'
type: 'rocm'
uv_args: '--prerelease=allow'
runs-on: ubuntu-latest
env:
artifact_name: linux-${{ matrix.build.arch }}-${{ matrix.build.type }}.tar.zst
python_url: 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9+20240415-x86_64_v3-unknown-linux-gnu-install_only.tar.gz'
uv_url: 'https://github.com/astral-sh/uv/releases/download/0.1.35/uv-x86_64-unknown-linux-gnu.tar.gz'
requirements: requirements.${{ matrix.build.type }}.txt
requirements: ${{ matrix.build.uv_args }} requirements.${{ matrix.build.type }}.txt
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -78,16 +81,19 @@ jobs:
build:
- arch: 'x64'
type: 'cuda'
uv_args: ''
- arch: 'x64'
type: 'directml'
uv_args: '--prerelease=allow'
- arch: 'x64'
type: 'cpu'
uv_args: '--prerelease=allow'
runs-on: windows-latest
env:
artifact_name: win32-${{ matrix.build.arch }}-${{ matrix.build.type }}.tar.zst
python_url: 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9+20240415-x86_64-pc-windows-msvc-install_only.tar.gz'
uv_url: 'https://github.com/astral-sh/uv/releases/download/0.1.35/uv-x86_64-pc-windows-msvc.zip'
requirements: requirements.${{ matrix.build.type }}.txt
requirements: ${{ matrix.build.uv_args }} requirements.${{ matrix.build.type }}.txt
steps:
- uses: actions/checkout@v4

Expand Down
1 change: 0 additions & 1 deletion requirements.cpu.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
--pre
--extra-index-url https://download.pytorch.org/whl/nightly/cpu
-r requirements.txt
torch
Expand Down
1 change: 0 additions & 1 deletion requirements.directml.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
--pre
-r requirements.txt
torch-directml
onnxruntime-directml
1 change: 0 additions & 1 deletion requirements.rocm.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
--pre
--extra-index-url https://download.pytorch.org/whl/nightly/rocm6.0
-r requirements.txt
torch
Expand Down

0 comments on commit 1b7e71a

Please sign in to comment.