Skip to content

Commit 4a444b4

Browse files
committed
Add clippy test for windows
1 parent e95623a commit 4a444b4

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,35 @@ jobs:
9191
FFMPEG_PKG_CONFIG_PATH=${HOME}/ffmpeg_build/lib/pkgconfig \
9292
cargo clippy -- -D warnings
9393
94+
rust_clippy_check_windows:
95+
runs-on: windows-latest
96+
steps:
97+
- uses: actions/checkout@v2
98+
- uses: actions-rs/toolchain@v1
99+
with:
100+
profile: minimal
101+
toolchain: stable
102+
override: true
103+
104+
# Using this since it's used by clang-sys's CI
105+
- name: Install LLVM and Clang
106+
uses: KyleMayes/install-llvm-action@v1
107+
with:
108+
version: "10.0"
109+
directory: ${{ github.workspace }}/clang
110+
111+
- run: |
112+
git clone https://github.com/microsoft/vcpkg --depth 1
113+
./vcpkg/bootstrap-vcpkg.bat
114+
./vcpkg/vcpkg.exe install ffmpeg:x64-windows-static-md
115+
116+
- name: Clippy check
117+
env:
118+
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
119+
LIBCLANG_PATH: ${{ github.workspace }}/clang/lib
120+
LLVM_CONFIG_PATH: ${{ github.workspace }}/clang/bin/llvm-config
121+
run: cargo clippy -- -D warnings
122+
94123
build_static_and_test_ubuntu:
95124
runs-on: ubuntu-latest
96125
steps:

0 commit comments

Comments
 (0)