fix(whisper.cpp)

closes #3981
This commit is contained in:
Jacob Heider 2023-11-07 14:17:11 -05:00 committed by Jacob Heider
parent 76c60ccaf6
commit 0541068b8b

View file

@ -20,20 +20,25 @@ build:
dependencies: dependencies:
freedesktop.org/pkg-config: ~0.29 freedesktop.org/pkg-config: ~0.29
gnu.org/patch: '*' gnu.org/patch: '*'
script: | script:
patch -p1 < props/illegal_instruction.patch - run: patch -p1 < props/illegal_instruction.patch
if: <1.4.3
make --jobs {{ hw.concurrency }} - make --jobs {{ hw.concurrency }}
make stream --jobs {{ hw.concurrency }} - make stream --jobs {{ hw.concurrency }}
make command --jobs {{ hw.concurrency }} - make command --jobs {{ hw.concurrency }}
mkdir -p {{prefix}}/bin {{prefix}}/tbin {{prefix}}/share - mkdir -p {{prefix}}/bin {{prefix}}/tbin {{prefix}}/share
mv main stream command {{prefix}}/tbin - mv main stream command {{prefix}}/tbin
chmod +x {{prefix}}/tbin/* - chmod +x {{prefix}}/tbin/*
mv models/download-ggml-model.sh {{prefix}}/tbin/download-ggml-model.sh - mv models/download-ggml-model.sh {{prefix}}/tbin/download-ggml-model.sh
mv props/whisper.cpp props/whisper-fetch {{prefix}}/bin - mv props/whisper.cpp props/whisper-fetch {{prefix}}/bin
mv examples/command/commands.txt {{prefix}}/share - mv examples/command/commands.txt {{prefix}}/share
env:
darwin/aarch64:
# https://github.com/ggerganov/whisper.cpp/issues/1367
WHISPER_NO_METAL: 1
test: test:
dependencies: dependencies: