mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-24 06:46:37 +00:00
make : shim cmake
This commit is contained in:
parent
f2c680f893
commit
384e214cc7
38
.github/workflows/build.yml
vendored
38
.github/workflows/build.yml
vendored
@ -28,9 +28,9 @@ jobs:
|
|||||||
-w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
|
-w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
|
||||||
set -e
|
set -e
|
||||||
apt update
|
apt update
|
||||||
apt install -y build-essential libsdl2-dev
|
apt install -y build-essential libsdl2-dev cmake
|
||||||
make
|
cmake -B build
|
||||||
make stream'
|
cmake --build build --config Release -j $(nproc)'
|
||||||
|
|
||||||
macOS-latest:
|
macOS-latest:
|
||||||
runs-on: macOS-latest
|
runs-on: macOS-latest
|
||||||
@ -42,12 +42,12 @@ jobs:
|
|||||||
- name: Dependencies
|
- name: Dependencies
|
||||||
run: |
|
run: |
|
||||||
brew update
|
brew update
|
||||||
brew install sdl2
|
brew install sdl2 cmake
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
make
|
cmake -B build
|
||||||
make stream
|
cmake --build build --config Release
|
||||||
|
|
||||||
freeBSD-latest:
|
freeBSD-latest:
|
||||||
runs-on: macos-12
|
runs-on: macos-12
|
||||||
@ -63,9 +63,9 @@ jobs:
|
|||||||
version: '13.3'
|
version: '13.3'
|
||||||
run: |
|
run: |
|
||||||
sudo pkg update
|
sudo pkg update
|
||||||
sudo pkg install -y gmake sdl2
|
sudo pkg install -y gmake sdl2 cmake
|
||||||
gmake
|
cmake -B build
|
||||||
gmake stream
|
cmake --build build --config Release
|
||||||
|
|
||||||
ubuntu-latest-gcc:
|
ubuntu-latest-gcc:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -280,21 +280,6 @@ jobs:
|
|||||||
mingw-w64-${{matrix.env}}-SDL2
|
mingw-w64-${{matrix.env}}-SDL2
|
||||||
mingw-w64-${{matrix.env}}-openblas
|
mingw-w64-${{matrix.env}}-openblas
|
||||||
|
|
||||||
- name: Build using make
|
|
||||||
shell: msys2 {0}
|
|
||||||
run: |
|
|
||||||
make -j $(nproc)
|
|
||||||
|
|
||||||
- name: Clean after building using make
|
|
||||||
shell: msys2 {0}
|
|
||||||
run: |
|
|
||||||
make clean
|
|
||||||
|
|
||||||
- name: Build using make w/ OpenBLAS
|
|
||||||
shell: msys2 {0}
|
|
||||||
run: |
|
|
||||||
make GGML_OPENBLAS=1 -j $(nproc)
|
|
||||||
|
|
||||||
- name: Build using CMake
|
- name: Build using CMake
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
run: |
|
run: |
|
||||||
@ -664,5 +649,6 @@ jobs:
|
|||||||
- name: Test quantize
|
- name: Test quantize
|
||||||
run: |
|
run: |
|
||||||
./models/download-ggml-model.sh tiny.en
|
./models/download-ggml-model.sh tiny.en
|
||||||
make quantize
|
cmake -B build
|
||||||
./quantize models/ggml-tiny.en.bin models/ggml-tiny.en-q4_0.bin q4_0
|
cmake --build build --config Release
|
||||||
|
./build/bin/quantize models/ggml-tiny.en.bin models/ggml-tiny.en-q4_0.bin q4_0
|
||||||
|
Loading…
Reference in New Issue
Block a user