-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (47 loc) · 1.35 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: cargo-test
run: cargo test --all-features --workspace
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: cargo-fmt
run: cargo fmt -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: cargo-clippy
run: cargo clippy --all-targets --all-features --workspace -- -D warnings
readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check README.md and example.png
run: |
./.ci/compose-readme.py
git diff --word-diff --exit-code
msrv-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get minimum supported Rust version
run: echo "::set-output name=msrv::$(grep '^rust-version = ' Cargo.toml | grep -o '[0-9.]\+')"
id: get_msrv
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ steps.get_msrv.outputs.msrv }}
- name: Build
run: cargo +${{ steps.get_msrv.outputs.msrv }} build --all-targets --all-features
arm:
runs-on: [self-hosted, linux, ARM64]
steps:
- uses: actions/checkout@v4
- name: build
run: cargo build --all-targets --all-features --workspace