-
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.15 KB
/
ci-debug-builds.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
name: CoDiOS CI debug builder
'on':
- push
- pull_request
env:
CARGO_TERM_COLOR: always
jobs:
build-debug:
name: Debug builder for Cosmo CoDiOS
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup caching
uses: actions-rs/[email protected]
with:
crate: cross
version: latest
use-tool-cache: true
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2024-04-11
default: true
override: true
target: thumbv7em-none-eabihf
profile: minimal
- name: Build project (thumbv7em-none-eabihf) in debug mode
uses: actions-rs/cargo@v1
with:
command: build
args: >-
--all --locked --verbose --features firmware --target=thumbv7em-none-eabihf
use-cross: true
- name: Upload debug artefacts
uses: actions/upload-artifact@v4
with:
name: codios-firmware-debug.bin
path: |
/home/runner/work/CoDiOS/CoDiOS/target/thumbv7em-none-eabihf/debug/codios-firmware