-
Notifications
You must be signed in to change notification settings - Fork 45
59 lines (49 loc) · 1.49 KB
/
firmware.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
name: Tinymovr Firmware Check/Build
on: [push]
jobs:
check-and-build-fw:
runs-on: 'ubuntu-22.04'
strategy:
matrix:
board-revision: [R32, R33, R50, R51, R52, M51]
steps:
- uses: actions/checkout@v2
- uses: carlosperate/arm-none-eabi-gcc-action@v1
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: |
sudo apt-get install cppcheck
python -m pip install --upgrade pip
python -m pip install patch
- name: Run cppcheck on Tinymovr
run: cppcheck --force --addon=cert --error-exitcode=1 -isrc/rtt -isrc/utils -isrc/nvm -isrc/uart -isrc/can src
working-directory: firmware
- name: Clone Qorvo deps
uses: actions/checkout@v2
with:
repository: yconst/qorvo-deps
token: ${{ secrets.ACCESS_TOKEN }}
path: 'firmware/pac55xx_sdk'
clean: false
- name: Patch deps dir
run: |
python -m patch sdk_patch.patch
working-directory: firmware
- name: Build Debug
run: |
make debug REV=${{ matrix.board-revision }}
make clean
working-directory: firmware
- name: Build Upgrade Image
run: |
make upgrade REV=${{ matrix.board-revision }}
make clean
working-directory: firmware
- name: Build Release
run: |
make release REV=${{ matrix.board-revision }}
make clean
working-directory: firmware