generated from zephyrproject-rtos/example-application
-
Notifications
You must be signed in to change notification settings - Fork 5
58 lines (50 loc) · 2.51 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
name: Build
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-22.04
container: ghcr.io/zephyrproject-rtos/ci:v0.26.12
env:
CMAKE_PREFIX_PATH: /opt/toolchains
steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: healthypi5_zephyr
- name: Initialize
working-directory: healthypi5_zephyr
run: |
west init -l .
west update -o=--depth=1 -n
- name: Build Basic firmware - ILI9488
working-directory: healthypi5_zephyr
run: |
rm -rf *.uf2
west build -p auto -b healthypi5_rp2040 app -DEXTRA_CONF_FILE='overlay-bt.conf;overlay-display-ili9488.conf;overlay-logger-sd.conf' -DCONFIG_HEALTHYPI_OP_MODE_DISPLAY=n -DEXTRA_DTC_OVERLAY_FILE='healthypi5_rp2040_display_ili9488.overlay;healthypi5_rp2040_sd.overlay'
mv build/zephyr/zephyr.uf2 healthypi5_basic_ili9488.uf2
- name: Build Basic firmware - ST7796
working-directory: healthypi5_zephyr
run: |
west build -t pristine
west build -p auto -b healthypi5_rp2040 app -DEXTRA_CONF_FILE='overlay-bt.conf;overlay-display-st7796.conf;overlay-logger-sd.conf' -DCONFIG_HEALTHYPI_OP_MODE_DISPLAY=n -DEXTRA_DTC_OVERLAY_FILE='healthypi5_rp2040_display_st7796.overlay;healthypi5_rp2040_sd.overlay'
mv build/zephyr/zephyr.uf2 healthypi5_basic_st7796.uf2
- name: Build display firmware for ILI9488
working-directory: healthypi5_zephyr
run: |
west build -t pristine
west build -p auto -b healthypi5_rp2040 app -DEXTRA_CONF_FILE='overlay-bt.conf;overlay-display-ili9488.conf;overlay-logger-sd.conf' -DCONFIG_HEALTHYPI_OP_MODE_DISPLAY=y -DEXTRA_DTC_OVERLAY_FILE='healthypi5_rp2040_display_ili9488.overlay;healthypi5_rp2040_sd.overlay'
mv build/zephyr/zephyr.uf2 healthypi5_display_ili9488.uf2
- name: Build display firmware for ST7796
working-directory: healthypi5_zephyr
run: |
west build -t pristine
west build -p auto -b healthypi5_rp2040 app -DEXTRA_CONF_FILE='overlay-bt.conf;overlay-display-st7796.conf;overlay-logger-sd.conf' -DCONFIG_HEALTHYPI_OP_MODE_DISPLAY=y -DEXTRA_DTC_OVERLAY_FILE='healthypi5_rp2040_display_st7796.overlay;healthypi5_rp2040_sd.overlay'
mv build/zephyr/zephyr.uf2 healthypi5_display_st7796.uf2
- name: Upload release assets
uses: ncipollo/release-action@v1
with:
artifacts: "healthypi5_zephyr/*.uf2"
token: ${{ secrets.GITHUB_TOKEN }}