File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -206,6 +206,45 @@ jobs:
206206 echo "1"
207207 fi
208208
209+ build_static_and_test_windows :
210+ runs-on : windows-latest
211+ steps :
212+ - uses : actions/checkout@v2
213+ - uses : actions-rs/toolchain@v1
214+ with :
215+ profile : minimal
216+ toolchain : stable
217+ override : true
218+ # Using this since it's used by clang-sys's CI
219+ - name : Install LLVM and Clang
220+ uses : KyleMayes/install-llvm-action@v1
221+ with :
222+ version : " 10.0"
223+ directory : ${{ github.workspace }}/clang
224+
225+ - name : Clone vcpkg FFmpeg
226+ run : git clone https://github.com/microsoft/vcpkg --depth 1
227+ - name : Bootstrap vcpkg FFmpeg
228+ run : ./vcpkg/bootstrap-vcpkg.bat
229+ - name : Vcpkg install ffmpeg
230+ run : ./vcpkg/vcpkg.exe install ffmpeg:x64-windows-static-md
231+
232+ - name : Build and run Slice Example
233+ env :
234+ VCPKG_ROOT : ${{ github.workspace }}/vcpkg
235+ LIBCLANG_PATH : ${{ github.workspace }}/clang/lib
236+ LLVM_CONFIG_PATH : ${{ github.workspace }}/clang/bin/llvm-config
237+ run : cargo run --example slice
238+
239+ - name : Check test result correctness
240+ shell : bash
241+ run : |
242+ if [[ -z "$(git status --porcelain)" ]]; then
243+ echo "0"
244+ else
245+ echo "1"
246+ fi
247+
209248 build_with_vcpkg_ffmpeg_windows :
210249 runs-on : windows-latest
211250 strategy :
You can’t perform that action at this time.
0 commit comments