-
Notifications
You must be signed in to change notification settings - Fork 19
53 lines (42 loc) · 1.24 KB
/
Copy pathdevelop.yml
File metadata and controls
53 lines (42 loc) · 1.24 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
50
51
52
53
name: Compile & Test
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- id: restore-toolchain
uses: actions/cache/restore@v4
with:
path: ~/.rustup
key: none
restore-keys: |
rust-${{ runner.os }}-${{ matrix.toolchain }}
- id: toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
components: clippy
- name: rustup target add aarch64-unknown-none
run: rustup target add aarch64-unknown-none
- name: Build
run: make build
- name: Test
run: make test
- name: Check
run: make check
- name: Lint
run: cargo clippy --all-features --verbose
- uses: actions/cache/save@v4
if: ${{ ! endsWith(steps.restore-toolchain.outputs.cache-matched-key, steps.toolchain.outputs.cachekey) }}
with:
path: ~/.rustup
key: rust-${{ runner.os }}-${{ matrix.toolchain }}-${{ steps.toolchain.outputs.cachekey }}