ggerganov commited on
Commit
40eeba4
·
unverified ·
1 Parent(s): 96829a5

ci : add Windows build without OpenBLAS + change to Release (#85) (#282)

Browse files
Files changed (1) hide show
  1. .github/workflows/build.yml +54 -2
.github/workflows/build.yml CHANGED
@@ -119,7 +119,59 @@ jobs:
119
 
120
  strategy:
121
  matrix:
122
- build: [RelWithDebInfo]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  arch: [Win32, x64]
124
  blas: [ON]
125
  sdl2: [ON]
@@ -181,5 +233,5 @@ jobs:
181
  if: matrix.blas == 'ON' && matrix.sdl2 == 'ON'
182
  uses: actions/upload-artifact@v1
183
  with:
184
- name: whisper-bin-${{ matrix.arch }}
185
  path: build/bin/${{ matrix.build }}
 
119
 
120
  strategy:
121
  matrix:
122
+ build: [Release]
123
+ arch: [Win32, x64]
124
+ sdl2: [ON]
125
+ include:
126
+ - arch: Win32
127
+ s2arc: x86
128
+ - arch: x64
129
+ s2arc: x64
130
+ - sdl2: ON
131
+ s2ver: 2.26.0
132
+
133
+ steps:
134
+ - name: Clone
135
+ uses: actions/checkout@v1
136
+
137
+ - name: Add msbuild to PATH
138
+ uses: microsoft/setup-msbuild@v1
139
+
140
+ - name: Fetch SDL2 and set SDL2_DIR
141
+ if: matrix.sdl2 == 'ON'
142
+ run: |
143
+ C:/msys64/usr/bin/wget.exe -qO sdl2.zip https://github.com/libsdl-org/SDL/releases/download/release-${{ matrix.s2ver }}/SDL2-devel-${{ matrix.s2ver }}-VC.zip
144
+ 7z x sdl2.zip
145
+ echo "SDL2_DIR=$env:GITHUB_WORKSPACE/SDL2-${{ matrix.s2ver }}/cmake" >> $env:GITHUB_ENV
146
+
147
+ - name: Configure
148
+ run: >
149
+ cmake -S . -B ./build -A ${{ matrix.arch }}
150
+ -DCMAKE_BUILD_TYPE=${{ matrix.build }}
151
+ -DWHISPER_SUPPORT_SDL2=${{ matrix.sdl2 }}
152
+
153
+ - name: Build
154
+ run: |
155
+ cd ./build
156
+ msbuild ALL_BUILD.vcxproj -t:build -p:configuration=${{ matrix.build }} -p:platform=${{ matrix.arch }}
157
+
158
+ - name: Copy SDL2.dll
159
+ if: matrix.sdl2 == 'ON'
160
+ run: copy "$env:SDL2_DIR/../lib/${{ matrix.s2arc }}/SDL2.dll" build/bin/${{ matrix.build }}
161
+
162
+ - name: Upload binaries
163
+ if: matrix.sdl2 == 'ON'
164
+ uses: actions/upload-artifact@v1
165
+ with:
166
+ name: whisper-bin-${{ matrix.arch }}
167
+ path: build/bin/${{ matrix.build }}
168
+
169
+ windows-blas:
170
+ runs-on: windows-latest
171
+
172
+ strategy:
173
+ matrix:
174
+ build: [Release]
175
  arch: [Win32, x64]
176
  blas: [ON]
177
  sdl2: [ON]
 
233
  if: matrix.blas == 'ON' && matrix.sdl2 == 'ON'
234
  uses: actions/upload-artifact@v1
235
  with:
236
+ name: whisper-blas-bin-${{ matrix.arch }}
237
  path: build/bin/${{ matrix.build }}