Pārlūkot izejas kodu

build(workflow): fix ggml path configuration and filter python dependencies

沉默の金 5 mēneši atpakaļ
vecāks
revīzija
bc23fc3b33
1 mainītis faili ar 8 papildinājumiem un 4 dzēšanām
  1. 8 4
      .github/workflows/build.yml

+ 8 - 4
.github/workflows/build.yml

@@ -47,6 +47,9 @@ jobs:
       - name: Install Dependencies
         run: |
           pip install torch torchaudio --index-url https://download.pytorch.org/whl/cpu
+          # Filter out wxPython and PyAudio from requirements
+          sed -i '/wxPython/d' msst/requirements.txt
+          sed -i '/PyAudio/d' msst/requirements.txt
           pip install -r msst/requirements.txt
           pip install huggingface_hub scipy soundfile gguf librosa ml_collections einops pyyaml
           
@@ -185,7 +188,7 @@ jobs:
         run: |
           cmake -B build \
             -DCMAKE_BUILD_TYPE=Release \
-            -DGGML_DIR=${{ github.workspace }}/ggml \
+            -DGGML_DIR=ggml \
             -DGGML_CUDA=OFF \
             -DGGML_VULKAN=${{ matrix.backend == 'vulkan' && 'ON' || 'OFF' }} \
             -DMBR_BUILD_TESTS=ON \
@@ -195,7 +198,7 @@ jobs:
         if: runner.os == 'Windows'
         run: |
           cmake -B build -G "Ninja Multi-Config" `
-            -DGGML_DIR=${{ github.workspace }}/ggml `
+            -DGGML_DIR=ggml `
             -DGGML_CUDA=OFF `
             -DGGML_VULKAN=${{ matrix.backend == 'vulkan' && 'ON' || 'OFF' }} `
             -DMBR_BUILD_TESTS=ON `
@@ -314,9 +317,10 @@ jobs:
           
       - name: Configure
         run: |
+          ls -ld ggml
           cmake -B build -G Ninja \
             -DCMAKE_BUILD_TYPE=Release \
-            -DGGML_DIR=${{ github.workspace }}/ggml \
+            -DGGML_DIR=ggml \
             -DGGML_CUDA=ON \
             -DCMAKE_CUDA_ARCHITECTURES="75;80;86;89" \
             -DMBR_BUILD_TESTS=OFF \
@@ -367,7 +371,7 @@ jobs:
         run: |
           call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
           cmake -B build -G "Ninja Multi-Config" ^
-            -DGGML_DIR=%GITHUB_WORKSPACE%/ggml ^
+            -DGGML_DIR=ggml ^
             -DGGML_CUDA=ON ^
             -DCMAKE_CUDA_ARCHITECTURES="75;80;86;89" ^
             -DMBR_BUILD_TESTS=OFF ^