fork/oculante

git clone https://git.julia.blue/fork/oculante

Johann Woelperfix clippy4860fb4

0.9.2
1.9 KiB61 linesraw
1# This workflow uses actions that are not certified by GitHub.
2# They are provided by a third-party and are governed by
3# separate terms of service, privacy policy, and support
4# documentation.
5# rust-clippy is a tool that runs a bunch of lints to catch common
6# mistakes in your Rust code and help improve your Rust code.
7# More details at https://github.com/rust-lang/rust-clippy
8# and https://rust-lang.github.io/rust-clippy/
9
10name: rust-clippy analyze
11
12on:
13  push:
14    branches: [ "master" ]
15  pull_request:
16    # The branches below must be a subset of the branches above
17    branches: [ "master" ]
18  schedule:
19    - cron: '28 16 * * 6'
20
21jobs:
22  rust-clippy-analyze:
23    name: Run rust-clippy analyzing
24    runs-on: ubuntu-latest
25    permissions:
26      contents: read
27      security-events: write
28      actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
29    steps:
30      - name: Checkout code
31        uses: actions/checkout@v2
32
33      - name: Install Rust toolchain
34        uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af #@v1
35        with:
36          profile: minimal
37          toolchain: stable
38          components: clippy
39          override: true
40
41      - name: Patch azure linux deps
42        run: sudo apt update
43      
44      - name: Install linux deps
45        run: sudo apt-get install libxcb-shape0-dev libxcb-xfixes0-dev libgtk-3-dev libasound2-dev nasm meson ninja-build libdav1d-dev dav1d
46
47      - name: Install required cargo
48        run: cargo install clippy-sarif sarif-fmt
49
50      - name: Run rust-clippy
51        run:
52          cargo clippy
53          --all-features
54          --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
55        continue-on-error: true
56
57      - name: Upload analysis results to GitHub
58        uses: github/codeql-action/upload-sarif@v1
59        with:
60          sarif_file: rust-clippy-results.sarif
61          wait-for-processing: true