-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 910 Bytes
/
buid.yml
File metadata and controls
44 lines (36 loc) · 910 Bytes
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
name: STM32 Build Pipeline
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# 1. Checkout repo
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
# 2. Install ARM cross compiler + tools
- name: Install ARM GCC Toolchain
run: |
sudo apt-get update
sudo apt-get install -y gcc-arm-none-eabi cmake make
# 3. Configure with CMake
- name: Configure project
run: |
mkdir -p build
cd build
cmake ..
# 4. Build firmware
- name: Build firmware
run: |
cd build
make cli -j$(nproc)
# 5. Check ELF file size (helpful sanity check)
- name: Firmware size
run: |
cd build
arm-none-eabi-size *.elf || true