Skip to content

Commit f7c8108

Browse files
przemocjiahansu
authored andcommitted
ci : add building in MSYS2 environments (Windows) (ggml-org#1994)
1 parent 83f0565 commit f7c8108

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/build.yml

+58
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,64 @@ jobs:
250250
cmake -DWHISPER_SYCL_F16=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ..
251251
cmake --build . --config Release -j $(nproc)
252252
253+
windows-msys2:
254+
runs-on: windows-latest
255+
256+
strategy:
257+
fail-fast: false
258+
matrix:
259+
include:
260+
- { sys: UCRT64, env: ucrt-x86_64, build: Release }
261+
- { sys: CLANG64, env: clang-x86_64, build: Release }
262+
263+
steps:
264+
- name: Clone
265+
uses: actions/checkout@v3
266+
267+
- name: Setup ${{ matrix.sys }}
268+
uses: msys2/setup-msys2@v2
269+
with:
270+
update: true
271+
msystem: ${{matrix.sys}}
272+
install: >-
273+
base-devel
274+
mingw-w64-${{matrix.env}}-toolchain
275+
mingw-w64-${{matrix.env}}-cmake
276+
mingw-w64-${{matrix.env}}-SDL2
277+
mingw-w64-${{matrix.env}}-openblas
278+
279+
- name: Build using make
280+
shell: msys2 {0}
281+
run: |
282+
make -j $(nproc)
283+
284+
- name: Clean after building using make
285+
shell: msys2 {0}
286+
run: |
287+
make clean
288+
289+
- name: Build using make w/ OpenBLAS
290+
shell: msys2 {0}
291+
run: |
292+
make WHISPER_OPENBLAS=1 -j $(nproc)
293+
294+
- name: Build using CMake
295+
shell: msys2 {0}
296+
run: |
297+
cmake -B build
298+
cmake --build build --config ${{ matrix.build }} -j $(nproc)
299+
300+
- name: Clean after building using CMake
301+
shell: msys2 {0}
302+
run: |
303+
rm -rf build
304+
305+
- name: Build using CMake w/ OpenBLAS
306+
shell: msys2 {0}
307+
run: |
308+
cmake -B build -DWHISPER_OPENBLAS=ON
309+
cmake --build build --config ${{ matrix.build }} -j $(nproc)
310+
253311
windows:
254312
runs-on: windows-latest
255313

0 commit comments

Comments
 (0)