-
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (47 loc) · 1.28 KB
/
ci-tests.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
47
name: CoDiOS CI tests
'on':
- push
- pull_request
env:
CARGO_TERM_COLOR: always
jobs:
tests:
name: Run tests on all Rust channels
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2024-04-11
profile: minimal
components: clippy
override: true
target: thumbv7em-none-eabihf
default: true
- name: Setup Cargo binary caching/installation action
uses: actions-rs/[email protected]
with:
crate: cross
version: latest
use-tool-cache: true
- name: Build debug CoDiOSl
uses: actions-rs/cargo@v1
with:
command: build
args: '--features firmware --target=thumbv7em-none-eabihf'
use-cross: true
- name: Run tests
if: false
uses: actions-rs/cargo@v1
with:
command: test
args: '--features firmware --target=thumbv7em-none-eabihf'
use-cross: true
- name: Run Clippy checks
uses: actions-rs/cargo@v1
with:
use-cross: true
command: clippy
args: '--features firmware --target=thumbv7em-none-eabihf'