Skip to content

Commit d63d0a9

Browse files
committed
build: update whisper.cpp build to cmake in CI and remove desktop entry.
1 parent 444f5ce commit d63d0a9

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

.github/workflows/build-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ jobs:
9090
if: matrix.os != 'windows-latest'
9191
run: |
9292
cd whisper.cpp
93-
make -j$(nproc 2>/dev/null || sysctl -n hw.ncpu)
93+
cmake -B build -DGGML_NATIVE=OFF
94+
cmake --build build --config Release -j$(nproc 2>/dev/null || sysctl -n hw.ncpu)
9495
9596
- name: Build Whisper (Windows)
9697
if: matrix.os == 'windows-latest'

application/build/push-to-talk.desktop

Lines changed: 0 additions & 10 deletions
This file was deleted.

application/install.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,21 @@ fi
6767
cd whisper.cpp
6868

6969
# Download model if not present
70-
if [ ! -f "models/ggml-small.bin" ]; then
70+
if [ ! -f "models/ggml-base.bin" ]; then
7171
echo ""
72-
echo -e "${YELLOW}📥 Downloading 'small' model (~465 MB)...${NC}"
72+
echo -e "${YELLOW}📥 Downloading 'base' model (~148 MB)...${NC}"
7373
echo " This may take a few minutes depending on your connection."
74-
bash ./models/download-ggml-model.sh small
74+
bash ./models/download-ggml-model.sh base
7575
else
76-
echo -e "${GREEN}${NC} Model ggml-small.bin exists"
76+
echo -e "${GREEN}${NC} Model ggml-base.bin exists"
7777
fi
7878

7979
# Compile whisper if not compiled
8080
if [ ! -f "build/bin/whisper-cli" ]; then
8181
echo ""
8282
echo -e "${YELLOW}🔨 Compiling whisper.cpp...${NC}"
83-
make
83+
cmake -B build -DGGML_NATIVE=OFF
84+
cmake --build build --config Release -j$(sysctl -n hw.ncpu 2>/dev/null || nproc 2>/dev/null || echo 4)
8485
else
8586
echo -e "${GREEN}${NC} whisper-cli already compiled"
8687
fi

0 commit comments

Comments
 (0)