Skip to content

Commit

Permalink
Merge pull request #15 from zosman1/main
Browse files Browse the repository at this point in the history
Adding multiple release architectures to Package Release github action
  • Loading branch information
dylanebert authored Dec 23, 2024
2 parents 62db42e + 601efc8 commit b7628a4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/package-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,33 @@ jobs:
strategy:
matrix:
platform:
- filename: cpu
- filename: cpu-win64
os: windows-latest
requirements: cpu.txt
- filename: cuda
- filename: cuda-win64
os: windows-latest
requirements: cuda.txt

- filename: cpu-macos-arm
os: macos-latest
requirements: cpu.txt
- filename: cuda-macos-arm
os: macos-latest
requirements: cuda.txt

- filename: cpu-macos-x86
os: macos-13
requirements: cpu.txt
- filename: cuda-macos-x86
os: macos-13
requirements: cuda.txt

- filename: cpu-linux
os: ubuntu-latest
requirements: cpu.txt
- filename: cuda-linux
os: ubuntu-latest
requirements: cuda.txt
runs-on: ${{ matrix.platform.os }}
steps:
- name: Checkout repository
Expand All @@ -34,7 +55,7 @@ jobs:

- name: Install dependencies
shell: bash
run: "python -m pip install -r requirements/${{ matrix.platform.requirements }} --only-binary=llama_cpp_python --no-cache-dir --target .python_dependencies"
run: "python -m pip install -r requirements/${{ matrix.platform.requirements }} --no-cache-dir --target .python_dependencies"
working-directory: meshgen

- name: Archive release
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 @@
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
llama_cpp_python==0.2.90

huggingface_hub
1 change: 0 additions & 1 deletion requirements/cuda.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu121
llama_cpp_python==0.2.90

huggingface_hub

0 comments on commit b7628a4

Please sign in to comment.