-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (38 loc) · 1.07 KB
/
Copy pathci.yml
File metadata and controls
49 lines (38 loc) · 1.07 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
48
49
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
env:
RUST_VERSION: "1.85.0"
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Check out source
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- name: Install Rust
run: |
rustup toolchain install ${{ env.RUST_VERSION }} --profile minimal --component rustfmt --component clippy
rustup default ${{ env.RUST_VERSION }}
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run tests
run: cargo test --all-targets --locked
- name: Run Clippy
run: cargo clippy --all-targets --locked -- -D warnings
- name: Build release binary
run: cargo build --release --locked