-
Notifications
You must be signed in to change notification settings - Fork 147
68 lines (65 loc) · 1.58 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Build
on:
push:
branches: [ master ]
paths:
- '.github/workflows/**'
- 'ci/**'
- 'cmake/**'
- 'core/**'
- 'Drivers/**'
- 'src/**'
- 'tests/**'
- 'CMakeLists.txt'
- 'Makefile'
pull_request:
branches: [ master ]
paths:
- '.github/workflows/**'
- 'ci/**'
- 'cmake/**'
- 'core/**'
- 'Drivers/**'
- 'src/**'
- 'tests/**'
- 'CMakeLists.txt'
- 'Makefile'
jobs:
build-makefile:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup arm-none-eabi-gcc
uses: fiam/arm-none-eabi-gcc@v1
with:
release: '9-2019-q4'
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Build Library
run: make -j
- name: Build Examples
run: ./ci/build_examples.py -f core doc src tests Drivers
build-cmake:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup arm-none-eabi-gcc
uses: fiam/arm-none-eabi-gcc@v1
with:
release: '9-2019-q4'
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.20.x'
- name: Configure Library
run: cmake -S . -B build -G "Unix Makefiles" -D CMAKE_TOOLCHAIN_FILE=cmake/toolchains/stm32h750xx.cmake -D TOOLCHAIN_PREFIX=$(which arm-none-eabi-gcc | sed -e "s/bin\/arm-none-eabi-gcc//")
- name: Build Library
run: cmake --build build