-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 1003 Bytes
/
Copy pathlinux.yml
File metadata and controls
40 lines (35 loc) · 1003 Bytes
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
name: Linux
on:
push:
branches:
- main
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
steps:
- uses: actions/checkout@v4
- name: use stable toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: install dependencies
run: sudo apt-get install -y libfontconfig1-dev
# --workspace is load-bearing: plain `cargo build` only builds the root
# package and skips the xtask member, so a RenderConfig field added in
# main.rs/app.rs but not xtask used to compile green here and break only
# when someone ran `cargo xtask`. That shipped twice.
- name: build
run: cargo build --workspace --verbose
- name: test
run: cargo test --workspace --verbose
- name: clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: fmt
run: cargo fmt --all -- --check