File tree Expand file tree Collapse file tree 2 files changed +27
-7
lines changed
Expand file tree Collapse file tree 2 files changed +27
-7
lines changed Original file line number Diff line number Diff line change @@ -17,19 +17,39 @@ jobs:
1717 with :
1818 path : ' ./zephyr_workspace/application'
1919 submodules : recursive
20- - name : show directory
21- working-directory : ./zephyr_workspace/application
22- run : |
23- ls -lap .
24- ls -lap custom_boards
2520 - name : link custom boards
2621 working-directory : ./zephyr_workspace/application/custom_boards
2722 run : |
2823 ls -lap .
2924 ./link.sh
25+ - name : show boards directory
26+ working-directory : ./zephyr_workspace/application
27+ run : |
28+ ls -lap boards
3029 - name : initialize west
31- working-directory : ./workspace/ zephyr_workspace
30+ working-directory : ./zephyr_workspace
3231 run : |
3332 west update
3433 west zephyr-export
3534 pip install -r zephyr/scripts/requirements.txt
35+ - name : patch git
36+ working-directory : ./zephyr_workspace/zephyr
37+ run : |
38+ git apply ../.patch/gpio_pcf857x.patch
39+ - name : save gartennode.pem
40+ working-directory : ./zephyr_workspace/bootloader/mcuboot
41+ run : |
42+ echo "$PEM" | base64 --decode > gartennode.pem
43+ shell : bash
44+ env :
45+ PEM : ${{ secrets.ZEPHYR_SIGN_KEY }}
46+ - name : build application
47+ working-directory : ./zephyr_workspace
48+ run : |
49+ west build -b gartennode application --build-dir build -- -DEXTRA_CONF_FILE=prj.conf
50+ imgtool sign --header-size 0x200 --align 8 --version 1.2 --slot-size 0x30000 --key bootloader/mcuboot/gartennode.pem --pad build/zephyr/zephyr.bin signed_zephyr.bin
51+ - name : Publish binary
52+ uses : actions/upload-artifact@v3
53+ with :
54+ name : signed_zephyr
55+ path : signed_zephyr.bin
You can’t perform that action at this time.
0 commit comments