Skip to content

Commit 69a2331

Browse files
committed
Add CI windows build result testing
1 parent 5965bda commit 69a2331

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
@@ -141,6 +141,45 @@ jobs:
141141
echo "1"
142142
fi
143143
144+
build_and_test_windows:
145+
runs-on: windows-latest
146+
steps:
147+
- uses: actions/checkout@v2
148+
- uses: actions-rs/toolchain@v1
149+
with:
150+
profile: minimal
151+
toolchain: stable
152+
override: true
153+
# Using this since it's used by clang-sys's CI
154+
- name: Install LLVM and Clang
155+
uses: KyleMayes/install-llvm-action@v1
156+
with:
157+
version: "10.0"
158+
directory: ${{ github.workspace }}/clang
159+
160+
- name: Clone vcpkg FFmpeg
161+
run: git clone https://github.com/microsoft/vcpkg --depth 1
162+
- name: Bootstrap vcpkg FFmpeg
163+
run: ./vcpkg/bootstrap-vcpkg.bat
164+
- name: Vcpkg install ffmpeg
165+
run: ./vcpkg/vcpkg.exe install ffmpeg:x64-windows-static-md
166+
167+
- name: Build and run Slice Example
168+
env:
169+
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
170+
LIBCLANG_PATH: ${{ github.workspace }}/clang/lib
171+
LLVM_CONFIG_PATH: ${{ github.workspace }}/clang/bin/llvm-config
172+
run: cargo run --example slice
173+
174+
- name: Check test result correctness
175+
shell: bash
176+
run: |
177+
if [[ -z "$(git status --porcelain)" ]]; then
178+
echo "0"
179+
else
180+
echo "1"
181+
fi
182+
144183
build_with_cloned_ffmpeg:
145184
runs-on: ubuntu-latest
146185
steps:

0 commit comments

Comments
 (0)