-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (54 loc) · 1.46 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
name: Build
on:
pull_request:
push:
branches: [ main ]
jobs:
build_app:
runs-on: ubuntu-22.04
name: Run Application Build
strategy:
matrix:
board:
- nucleo_f207zg
- nucleo_f412zg
- nucleo_f756zg
steps:
- name: Update PATH for west
run: |
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Checkout
uses: actions/checkout@v4
with:
path: app
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Setup Zephyr project
uses: zephyrproject-rtos/action-zephyr-setup@v1
with:
app-path: app
toolchains: arm-zephyr-eabi
# sdk-version: 0.16.8
- name: Prepare Zephyr Workspace
shell: bash
run: |
west config manifest.project-filter -- +nanopb
west update
- name: Build Application
id: build
working-directory: app
shell: bash
run: |
west build -b ${{ matrix.board }}
ELF_NAME=zephyr.elf
HEX_NAME=zephyr.hex
ART_PATH="app/build/zephyr"
echo "HEX_NAME=${{ matrix.board }}" >> $GITHUB_OUTPUT
echo "ART_PATH=${ART_PATH}" >> $GITHUB_OUTPUT
- name: "Artifact upload: tarball"
uses: actions/upload-artifact@master
with:
name: ${{ steps.build.outputs.HEX_NAME }}
path: ${{ steps.build.outputs.ART_PATH }}