-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (37 loc) · 1.34 KB
/
build.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
48
49
50
51
52
name: Build
on:
push:
branches: [ master ]
pull_request:
workflow_dispatch:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt install -y cmake-format
- name: Lint
run: find . \( -name CMakeLists.txt -o -name *.cmake \) -exec cmake-format --check {} +
compile:
name: Compile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install ARM toolchain
uses: carlosperate/arm-none-eabi-gcc-action@v1
- name: Install CMake
run: sudo apt install -y cmake
- name: Checkout STM32CubeL4
uses: actions/checkout@v4
with:
repository: STMicroelectronics/STM32CubeL4
submodules: true
path: ./STM32CubeL4
- name: Compile blinky-ll
run: cmake -S examples/blinky-ll --preset debug -DSTM32CUBEL4_PATH=$(pwd)/STM32CubeL4 && cmake --build examples/blinky-ll/build
- name: Compile blinky-hal
run: cmake -S examples/blinky-hal --preset debug -DSTM32CUBEL4_PATH=$(pwd)/STM32CubeL4 && cmake --build examples/blinky-ll/build
- name: Compile blinky-multiboard
run: cmake -S examples/blinky-multiboard --preset debug -DSTM32CUBEL4_PATH=$(pwd)/STM32CubeL4 && cmake --build examples/blinky-ll/build