-
Notifications
You must be signed in to change notification settings - Fork 13
94 lines (78 loc) · 2.35 KB
/
Copy pathfirmware.yml
File metadata and controls
94 lines (78 loc) · 2.35 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: firmware
on:
push:
branches: [ "rewrite/v3" ]
paths-ignore:
- "docs/**"
- "Hardware/**"
- "README.md"
- "LICENSES/**"
- "LICENSE"
- "FAULTYCAT_REFACTOR_PLAN.md"
pull_request:
branches: [ "rewrite/v3", "main" ]
workflow_dispatch:
concurrency:
group: firmware-${{ github.ref }}
cancel-in-progress: true
jobs:
host-tests:
name: Host tests (HAL fakes, Unity)
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Checkout (with submodules)
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 1
- name: Install toolchain
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends cmake ninja-build
- name: Configure (host-tests preset)
run: cmake --preset host-tests
- name: Build
run: cmake --build build/host-tests --parallel
- name: Run tests
run: ctest --preset host-tests --output-on-failure
build:
name: Build UF2 (RP2040, release)
runs-on: ubuntu-24.04
timeout-minutes: 25
steps:
- name: Checkout (with submodules)
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 1
- name: Install toolchain
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
cmake ninja-build \
gcc-arm-none-eabi \
libnewlib-arm-none-eabi \
libstdc++-arm-none-eabi-newlib
- name: Show toolchain versions
run: |
cmake --version | head -1
ninja --version
arm-none-eabi-gcc --version | head -1
- name: Configure (fw-release preset)
run: cmake --preset fw-release
- name: Build
run: cmake --build build/fw-release --parallel
- name: Inspect artifact
run: |
ls -la build/fw-release/apps/faultycat_fw/
arm-none-eabi-size build/fw-release/apps/faultycat_fw/faultycat.elf
- name: Upload UF2
uses: actions/upload-artifact@v4
with:
name: faultycat-uf2-${{ github.sha }}
path: |
build/fw-release/apps/faultycat_fw/faultycat.uf2
build/fw-release/apps/faultycat_fw/faultycat.elf
retention-days: 30
if-no-files-found: error