forked from stm32duino/Arduino_Core_STM32
-
Notifications
You must be signed in to change notification settings - Fork 3
68 lines (62 loc) · 1.5 KB
/
Cmake.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: CMake config and build
on:
push:
branches:
- main
paths-ignore:
- .github/**
- '!.github/workflows/Cmake.yml'
- '*.json'
- '**.md'
- keywords.txt
- CI/**
- tools/**
pull_request:
paths-ignore:
- .github/**
- '!.github/workflows/Cmake.yml'
- '*.json'
- '**.md'
- keywords.txt
- CI/**
- tools/**
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
cmake:
name: Check CMake usage
runs-on: ubuntu-latest
strategy:
matrix:
boardname:
- NUCLEO_F091RC
- NUCLEO_F103RB
- NUCLEO_F207ZG
- NUCLEO_F303RE
- NUCLEO_F411RE
- NUCLEO_F767ZI
- NUCLEO_G0B1RE
- NUCLEO_G474RE
- NUCLEO_H563ZI
- NUCLEO_H743ZI2
- NUCLEO_L073RZ
- NUCLEO_L152RE
- NUCLEO_L476RG
- NUCLEO_L552ZE_Q
- NUCLEO_U083RC
- NUCLEO_U575ZI_Q
- P_NUCLEO_WB55RG
- NUCLEO_WBA55CG
- NUCLEO_WL55JC1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get latest CMake and Ninja
uses: lukka/get-cmake@latest
- name: Configure
run: |
mkdir build
cmake -DBOARDNAME=${{ matrix.boardname }} -S CI/build/examples/BareMinimum -B ./build -G Ninja
- name: Build example
working-directory: '${{ github.workspace }}/build'
run: ninja