-
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (38 loc) · 1.17 KB
/
Copy pathrust.yml
File metadata and controls
47 lines (38 loc) · 1.17 KB
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
name: Rust CI (All Versions)
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
# This workflow orchestrates all Rust version checks
# Individual version badges can be found in separate workflow files
all-rust-versions:
runs-on: ubuntu-latest
needs: []
strategy:
fail-fast: false
matrix:
rust: [stable, '1.89.0', nightly]
include:
- rust: nightly
allow-failure: true
continue-on-error: ${{ matrix.allow-failure || false }}
steps:
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libfontconfig1-dev pkg-config
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Rust ${{ matrix.rust }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --all --verbose
- name: Run clippy (linter)
run: cargo clippy --all -- -D warnings
- name: Run fmt (format check)
run: cargo fmt --all -- --check