Skip to content

Commit 2698e77

Browse files
committed
Add run test for windows
1 parent d773078 commit 2698e77

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/ci.yml

+39
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)