-
Notifications
You must be signed in to change notification settings - Fork 85
48 lines (38 loc) · 1.19 KB
/
rust.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
41
42
43
44
45
46
47
48
name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
name: Formatting
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rust-lang/[email protected]
with:
toolchain: "stable"
components: "rustfmt,clippy"
- name: cargo fmt
run: cargo fmt --all -- --check
- name: Install dependencies (Linux)
run: sudo apt-get update && sudo apt-get install -y libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev libclang-dev libgtk-3-dev
- name: Clippy
run: cargo clippy --workspace --no-deps --all-features --all-targets -- -D warnings
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rust-lang/[email protected]
with:
toolchain: "stable"
- name: Build
run: cargo build --verbose