ci: fix clippy check workflow

This commit is contained in:
anatawa12 2024-07-08 10:10:06 +09:00
commit 0aeff6eecc
No known key found for this signature in database
GPG key ID: 9CA909848B8E4EA6
2 changed files with 16 additions and 1 deletions

View file

@ -21,7 +21,7 @@ jobs:
sudo apt update && sudo apt install -y lld
ld.lld --version
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
sudo apt update && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
rustflags: "-C link-arg=-fuse-ld=lld"
- triple: x86_64-pc-windows-msvc

View file

@ -29,11 +29,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: install dependencies
run:
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.2xx
- name: try clippy without action
# avoid silent build failure
# see https://github.com/giraffate/clippy-action/issues/88
run: cargo clippy --color always -q --all --all-targets --all-features
- uses: giraffate/clippy-action@v1
with:
reporter: github-pr-check