Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart

Fix the whisper GPU library workflow not finding its shared header

Barnabasd445775d4ab6
diff --git a/.github/workflows/whisper-metallib.yml b/.github/workflows/whisper-metallib.yml
index da1f1841..339d11af 100644
--- a/.github/workflows/whisper-metallib.yml
+++ b/.github/workflows/whisper-metallib.yml
@@ -46,6 +46,7 @@ jobs:
sed -e "/#include \"ggml-metal-impl.h\"/r $SRC/ggml-metal-impl.h" \
-e "/#include \"ggml-metal-impl.h\"/d" < "$OUT/step.metal" > "$OUT/ggml-metal-embed.metal"
xcrun -sdk iphoneos metal -std=ios-metal2.3 -mios-version-min=15.0 -O3 \
+ -I Classes/whisper/ggml/include -I Classes/whisper/ggml/src -I "$SRC" \
-c "$OUT/ggml-metal-embed.metal" -o "$OUT/ggml-metal.air"
xcrun -sdk iphoneos metallib "$OUT/ggml-metal.air" -o "$OUT/default.metallib"
ls -l "$OUT/default.metallib"