-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (37 loc) · 984 Bytes
/
rust.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
name: Rust
on:
push:
branches:
- master
pull_request:
env:
CARGO_INCREMENTAL: 0
# Copyright (c) 2021 sksat
# https://github.com/sksat/action-clippy
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: install clippy
uses: dsherret/rust-toolchain-file@v1
- name: create dummy file
run: |
touch vmlinux
touch guest.dtb
echo '#!/bin/sh' > dtc && chmod +x dtc && mv dtc /usr/local/bin/dtc
- uses: sksat/[email protected]
if: github.event_name == 'push'
with:
reporter: github-check
- uses: sksat/[email protected]
if: github.event_name == 'pull_request'
with:
reporter: github-pr-review
- name: format check
run: cargo fmt --all -- --check
# no crate for test in no_std
#- name: unit test
# run: cargo test