-
Notifications
You must be signed in to change notification settings - Fork 33
42 lines (37 loc) · 948 Bytes
/
ci.yaml
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
name: CI
on:
push:
branches:
- main
tags:
- "v*"
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: |
cd host
cargo check
cargo fmt --check
cargo clippy
- name: Test
run: |
cd host
cargo test --lib -- --nocapture
- name: Build examples
run: for i in nrf-sdc; do pushd examples/$i; cargo fmt --check && cargo clippy && cargo build --release; popd; done;
#integration-tests:
# runs-on: self-hosted
# steps:
# - uses: actions/checkout@v4
# - name: Build
# env:
# TEST_ADAPTER_ONE: /dev/ttyACM0
# TEST_ADAPTER_TWO: /dev/ttyACM1
# RUST_LOG: info
# run: |
# cd host
# cargo test --test '*' -- --nocapture