fork/wpaperd

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

Danilo Spinellaworkflows: Add egl dependency9730038

follow-links
2.7 KiB109 linesraw
1on: [push, pull_request]
2
3name: Continuous integration
4
5jobs:
6  check:
7    name: Check
8    runs-on: ubuntu-latest
9    steps:
10      - uses: actions/checkout@v2
11      - name: Install dependencies
12        run:
13          sudo apt-get install --yes libwayland-dev libegl1-mesa-dev
14      - uses: actions-rs/toolchain@v1
15        with:
16          profile: minimal
17          toolchain: stable
18          override: true
19      - uses: actions-rs/cargo@v1
20        with:
21          command: check
22
23  test:
24    name: Test Suite
25    runs-on: ubuntu-latest
26    steps:
27      - uses: actions/checkout@v2
28      - name: Install dependencies
29        run:
30          sudo apt-get install --yes libwayland-dev libegl1-mesa-dev
31      - uses: actions-rs/toolchain@v1
32        with:
33          profile: minimal
34          toolchain: stable
35          override: true
36      - uses: actions-rs/cargo@v1
37        with:
38          command: test
39
40  fmt:
41    name: Rustfmt
42    runs-on: ubuntu-latest
43    steps:
44      - uses: actions/checkout@v2
45      - uses: actions-rs/toolchain@v1
46        with:
47          profile: minimal
48          toolchain: stable
49          override: true
50      - run: rustup component add rustfmt
51      - uses: actions-rs/cargo@v1
52        with:
53          command: fmt
54          args: --all -- --check
55
56  clippy:
57    name: Clippy
58    runs-on: ubuntu-latest
59    permissions:
60      contents: read
61      security-events: write
62    steps:
63      - name: Checkout code
64        uses: actions/checkout@v2
65
66      - name: Install Rust toolchain
67        uses: actions-rs/toolchain@v1
68        with:
69          profile: minimal
70          toolchain: stable
71          components: clippy
72          override: true
73
74      - name: Install required cargo
75        run: cargo install clippy-sarif sarif-fmt
76
77      - name: Run rust-clippy
78        run:
79          cargo clippy
80          --all-features
81          --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
82        continue-on-error: true
83
84      - name: Upload analysis results to GitHub
85        uses: github/codeql-action/upload-sarif@v1
86        with:
87          sarif_file: rust-clippy-results.sarif
88          wait-for-processing: true
89
90  audit:
91    name: Audit
92    runs-on: ubuntu-latest
93    steps:
94      - uses: actions/checkout@v2
95      - uses: actions-rs/toolchain@v1
96        with:
97          profile: minimal
98          toolchain: stable
99          override: true
100      - name: Install cargo-audit binary crate
101        uses: actions-rs/install@v0.1
102        with:
103          crate: cargo-audit
104          version: latest
105          use-tool-cache: true
106      - name: Security audit
107        uses: actions-rs/audit-check@v1
108        with:
109          token: ${{ secrets.GITHUB_TOKEN }}