-
Notifications
You must be signed in to change notification settings - Fork 13
37 lines (34 loc) · 958 Bytes
/
native.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
# Goal here is to run all CI that do not require the ESP-IDF environment
name: CI for Native
on:
workflow_call:
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: short
RUSTUP_MAX_RETRIES: 10
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name : Checkout main branch code
if: github.event_name != 'pull_request_target'
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Check out PR branch code
if: github.event_name == 'pull_request_target'
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 2
- uses: dtolnay/[email protected]
with:
components: clippy
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2
- name: install libudev
run: sudo apt update && sudo apt install libudev-dev -y
- name: Clippy Micro-RDK workspace
run: make clippy-native
- name: Tests
run: make test