Skip to content

Commit

Permalink
Install patch
Browse files Browse the repository at this point in the history
  • Loading branch information
streamer45 committed Oct 23, 2024
1 parent 4fa778b commit bd26489
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ ONNX_LIBRARY_PATH="/tmp/onnxruntime-linux-${ONNX_VERSION}/lib"
AZURE_SDK_INCLUDE_PATH="/tmp/SpeechSDK-Linux-${AZURE_SDK_VERSION}/include/c_api"
AZURE_SDK_LIBRARY_PATH="/tmp/SpeechSDK-Linux-${AZURE_SDK_VERSION}/lib/${TARGET_ARCH}"

apt-get install --no-install-recommends -y patch

bash ./build/prepare_deps.sh ${OPUS_VERSION} ${OPUS_SHA} ${WHISPER_VERSION} ${WHISPER_SHA} "" ${ONNX_VERSION} ${TARGET_ARCH} ${AZURE_SDK_VERSION} ${AZURE_SDK_SHA} && \
C_INCLUDE_PATH="${OPUS_INCLUDE_PATH}:${WHISPER_INCLUDE_PATH}:${ONNX_INCLUDE_PATH}:${AZURE_SDK_INCLUDE_PATH}" \
LIBRARY_PATH="${OPUS_LIBRARY_PATH}:${WHISPER_LIBRARY_PATH}:${ONNX_LIBRARY_PATH}:${AZURE_SDK_LIBRARY_PATH}" \
Expand Down
2 changes: 2 additions & 0 deletions build/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ ONNX_LIBRARY_PATH="/tmp/onnxruntime-linux-${ONNX_VERSION}/lib"
AZURE_SDK_INCLUDE_PATH="/tmp/SpeechSDK-Linux-${AZURE_SDK_VERSION}/include/c_api"
AZURE_SDK_LIBRARY_PATH="/tmp/SpeechSDK-Linux-${AZURE_SDK_VERSION}/lib/${TARGET_ARCH}"

apt-get install --no-install-recommends -y patch

bash ./build/prepare_deps.sh ${OPUS_VERSION} ${OPUS_SHA} ${WHISPER_VERSION} ${WHISPER_SHA} "tiny" ${ONNX_VERSION} ${TARGET_ARCH} ${AZURE_SDK_VERSION} ${AZURE_SDK_SHA} && \
mv /tmp/whisper.cpp-${WHISPER_VERSION}/models/ggml-tiny.bin /app/build/models && \
MODELS_DIR=/app/build/models \
Expand Down

0 comments on commit bd26489

Please sign in to comment.