forked from Starry-OS/StarryOS
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 908 Bytes
/
Copy pathcheck.yml
File metadata and controls
38 lines (31 loc) · 908 Bytes
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
name: Check
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
jobs:
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- arch: riscv64
target: riscv64gc-unknown-none-elf
- arch: loongarch64
target: loongarch64-unknown-none-softfloat
- arch: aarch64
target: aarch64-unknown-none-softfloat
- arch: x86_64
target: x86_64-unknown-none
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.arch }}
- uses: arceos-org/setup-musl@v1
with:
arch: ${{ matrix.arch }}
- name: Clippy
run: cargo clippy --target ${{ matrix.target }} -F qemu -- -D warnings