Skip to content

Commit c227f7e

Browse files
committed
ci : extract windows jobs to build-windows.yml
1 parent 90138a2 commit c227f7e

2 files changed

Lines changed: 77 additions & 44 deletions

File tree

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: CI (windows)
2+
3+
on:
4+
workflow_dispatch: # allows manual triggering
5+
push:
6+
branches:
7+
- master
8+
paths: ['.github/workflows/build-windows.yml',
9+
'**/CMakeLists.txt',
10+
'**/Makefile',
11+
'**/*.mk',
12+
'**/*.cmake',
13+
'**/*.in',
14+
'**/*.h',
15+
'**/*.hpp',
16+
'**/*.c',
17+
'**/*.cpp',
18+
'**/*.cu',
19+
'**/*.cuh',
20+
'**/*.cl']
21+
22+
pull_request:
23+
types: [opened, synchronize, reopened]
24+
paths-ignore:
25+
- 'bindings/ruby/**' # handled by bindings-ruby.yml
26+
- 'bindings/go/**' # handled by bindings-go.yml
27+
- 'examples/addon.node/**' # handled by examples.yml
28+
29+
concurrency:
30+
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
31+
cancel-in-progress: true
32+
33+
jobs:
34+
windows-msys2:
35+
runs-on: windows-latest
36+
37+
strategy:
38+
fail-fast: false
39+
matrix:
40+
include:
41+
- { sys: UCRT64, env: ucrt-x86_64, build: Release }
42+
- { sys: CLANG64, env: clang-x86_64, build: Release }
43+
44+
steps:
45+
- name: Clone
46+
uses: actions/checkout@v6
47+
48+
- name: Setup ${{ matrix.sys }}
49+
uses: msys2/setup-msys2@v2
50+
with:
51+
update: true
52+
msystem: ${{matrix.sys}}
53+
install: >-
54+
base-devel
55+
git
56+
mingw-w64-${{matrix.env}}-toolchain
57+
mingw-w64-${{matrix.env}}-cmake
58+
mingw-w64-${{matrix.env}}-SDL2
59+
mingw-w64-${{matrix.env}}-openblas
60+
61+
- name: Build using CMake
62+
shell: msys2 {0}
63+
run: |
64+
cmake -B build -DWHISPER_SDL2=ON
65+
cmake --build build --config ${{ matrix.build }} -j $(nproc)
66+
67+
- name: Clean after building using CMake
68+
shell: msys2 {0}
69+
run: |
70+
rm -rf build
71+
72+
- name: Build using CMake w/ OpenBLAS
73+
shell: msys2 {0}
74+
run: |
75+
cmake -B build -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS
76+
cmake --build build --config ${{ matrix.build }} -j $(nproc)

.github/workflows/build.yml

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ on:
3939
- '.github/workflows/build-gcc.yml' # handled by build-gcc.yml
4040
- '.github/workflows/build-clang.yml' # handled by build-clang.yml
4141
- '.github/workflows/build-sycl.yml' # handled by build-sycl.yml
42+
- '.github/workflows/build-windows.yml' # handled by build-windows.yml
4243

4344
concurrency:
4445
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
@@ -67,50 +68,6 @@ jobs:
6768
# cmake -B build
6869
# cmake --build build --config Release
6970

70-
windows-msys2:
71-
runs-on: windows-latest
72-
73-
strategy:
74-
fail-fast: false
75-
matrix:
76-
include:
77-
- { sys: UCRT64, env: ucrt-x86_64, build: Release }
78-
- { sys: CLANG64, env: clang-x86_64, build: Release }
79-
80-
steps:
81-
- name: Clone
82-
uses: actions/checkout@v6
83-
84-
- name: Setup ${{ matrix.sys }}
85-
uses: msys2/setup-msys2@v2
86-
with:
87-
update: true
88-
msystem: ${{matrix.sys}}
89-
install: >-
90-
base-devel
91-
git
92-
mingw-w64-${{matrix.env}}-toolchain
93-
mingw-w64-${{matrix.env}}-cmake
94-
mingw-w64-${{matrix.env}}-SDL2
95-
mingw-w64-${{matrix.env}}-openblas
96-
97-
- name: Build using CMake
98-
shell: msys2 {0}
99-
run: |
100-
cmake -B build -DWHISPER_SDL2=ON
101-
cmake --build build --config ${{ matrix.build }} -j $(nproc)
102-
103-
- name: Clean after building using CMake
104-
shell: msys2 {0}
105-
run: |
106-
rm -rf build
107-
108-
- name: Build using CMake w/ OpenBLAS
109-
shell: msys2 {0}
110-
run: |
111-
cmake -B build -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS
112-
cmake --build build --config ${{ matrix.build }} -j $(nproc)
113-
11471
emscripten:
11572
runs-on: ubuntu-22.04
11673

0 commit comments

Comments
 (0)