-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (38 loc) · 1021 Bytes
/
lint_and_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: lint and test
on: [push, pull_request]
jobs:
Test:
name: ${{ matrix.name }} (${{ matrix.config }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
config: [Debug, Release]
include:
- os: macos-latest
name: macOS
- os: ubuntu-latest
name: Linux
- os: windows-latest
name: Windows
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
override: true
- name: Dependencies (Linux)
if: runner.os == 'Linux'
run: sudo apt-get install libxkbcommon-dev libxcb-shape0-dev libxcb-xfixes0-dev
- name: build
uses: actions-rs/cargo@v1
with:
command: build
- name: test
uses: actions-rs/cargo@v1
with:
command: test
- name: clippy
run: cargo clippy --all -- -D warnings