-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (47 loc) · 1.24 KB
/
check.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
56
57
name: PR checks
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- main
env:
CARGO_TERM_COLOR: always
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
jobs:
check:
strategy:
matrix:
version: ["v4", "v6c6", "v6s3"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: esp-rs/[email protected]
with:
default: true
buildtargets: esp32s3
version: "1.80.0"
ldproxy: false
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-06-01
components: clippy, rustfmt, rust-src
- uses: Swatinem/rust-cache@v2
- name: format check
run: cargo fmt --check
- name: check
run: cargo xcheck ${{ matrix.version }}
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: esp-rs/[email protected]
with:
default: true
buildtargets: esp32s3
ldproxy: false
- uses: Swatinem/rust-cache@v2
- name: test
run: cargo xtask test