Skip to content

Commit

Permalink
Refactor build.yaml to use environment variable for simpler-whisper v…
Browse files Browse the repository at this point in the history
…ersion
  • Loading branch information
royshil committed Oct 25, 2024
1 parent 7950916 commit 50372ba
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ jobs:
run: |
curl -L https://github.com/locaal-ai/simpler-whisper/releases/download/${{ simpler-whisper-version }}/simpler_whisper-${{ simpler-whisper-version }}-cp311-cp311-cpu-x86_64-linux_x86_64.whl -o simpler_whisper-${{ simpler-whisper-version }}-cp311-cp311-linux_x86_64.whl
python -m pip install simpler_whisper-${{ simpler-whisper-version }}-cp311-cp311-linux_x86_64.whl
env:
simpler-whisper-version: ${{ env.simpler-whisper-version }}

- name: Install MacOS llama-cpp-python
if: startsWith(matrix.os, 'macos')
Expand All @@ -83,12 +85,16 @@ jobs:
run: |
curl -L https://github.com/locaal-ai/simpler-whisper/releases/download/${{ simpler-whisper-version }}/simpler_whisper-${{ simpler-whisper-version }}-cp311-cp311-cpu-arm64-macosx_14_0_universal2.whl -o simpler_whisper-${{ simpler-whisper-version }}-cp311-cp311-macosx_14_0_universal2.whl
python -m pip install simpler_whisper-${{ simpler-whisper-version }}-cp311-cp311-macosx_14_0_universal2.whl
env:
simpler-whisper-version: ${{ env.simpler-whisper-version }}

- name: Install MacOS x86_64 simpler-whisper
if: matrix.target == 'macos-x86'
run: |
curl -L https://github.com/locaal-ai/simpler-whisper/releases/download/${{ simpler-whisper-version }}/simpler_whisper-${{ simpler-whisper-version }}-cp311-cp311-cpu-x86_64-macosx_14_0_universal2.whl -o simpler_whisper-${{ simpler-whisper-version }}-cp311-cp311-macosx_14_0_universal2.whl
python -m pip install simpler_whisper-${{ simpler-whisper-version }}-cp311-cp311-macosx_14_0_universal2.whl
env:
simpler-whisper-version: ${{ env.simpler-whisper-version }}

- name: Install Windows CPU dependencies
if: matrix.target == 'windows-cpu'
Expand All @@ -98,6 +104,8 @@ jobs:
Invoke-WebRequest -Uri https://github.com/locaal-ai/simpler-whisper/releases/download/${{ simpler-whisper-version }}/simpler_whisper-${{ simpler-whisper-version }}-cp311-cp311-cpu-win64-win_amd64.whl -OutFile simpler_whisper-${{ simpler-whisper-version }}-cp311-cp311-win_amd64.whl
python -m pip install simpler_whisper-${{ simpler-whisper-version }}-cp311-cp311-win_amd64.whl
env:
simpler-whisper-version: ${{ env.simpler-whisper-version }}

- name: Install Windows CUDA dependencies
if: matrix.target == 'windows-cuda'
Expand All @@ -106,6 +114,8 @@ jobs:
Invoke-WebRequest -Uri https://github.com/locaal-ai/simpler-whisper/releases/download/${{ simpler-whisper-version }}/simpler_whisper-${{ simpler-whisper-version }}-cp311-cp311-cuda-win64-win_amd64.whl -OutFile simpler_whisper-${{ simpler-whisper-version }}-cp311-cp311-win_amd64.whl
python -m pip install simpler_whisper-${{ simpler-whisper-version }}-cp311-cp311-win_amd64.whl
env:
simpler-whisper-version: ${{ env.simpler-whisper-version }}

- name: Install dependencies
run: |
Expand Down

0 comments on commit 50372ba

Please sign in to comment.