Spaces:
Running
Running
Przemysław Pawełczyk
commited on
ci : add building in MSYS2 environments (Windows) (#1994)
Browse files- .github/workflows/build.yml +58 -0
.github/workflows/build.yml
CHANGED
|
@@ -250,6 +250,64 @@ jobs:
|
|
| 250 |
cmake -DWHISPER_SYCL_F16=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ..
|
| 251 |
cmake --build . --config Release -j $(nproc)
|
| 252 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 253 |
windows:
|
| 254 |
runs-on: windows-latest
|
| 255 |
|
|
|
|
| 250 |
cmake -DWHISPER_SYCL_F16=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ..
|
| 251 |
cmake --build . --config Release -j $(nproc)
|
| 252 |
|
| 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 |
+
|
| 311 |
windows:
|
| 312 |
runs-on: windows-latest
|
| 313 |
|