Skip to content

Commit 8df978d

Browse files
committed
Speedup building
1 parent 62d1ab1 commit 8df978d

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

.github/workflows/build2.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI - Fast
2+
on:
3+
workflow_dispatch:
4+
jobs:
5+
build-job:
6+
runs-on: ubuntu-latest
7+
container:
8+
image: ghcr.io/jaster-prj/devcontainer-zephyr-workspace:latest
9+
steps:
10+
- name: link workspace
11+
run: |
12+
ln -s /workspace ./zephyr_workspace
13+
- name: Clone Application
14+
uses: actions/checkout@v4
15+
with:
16+
path: './zephyr_workspace/app'
17+
submodules: recursive
18+
- name: link custom boards
19+
working-directory: ./zephyr_workspace/app/custom_boards
20+
run: |
21+
./link.sh
22+
- name: patch git
23+
working-directory: ./zephyr_workspace/zephyr
24+
run: |
25+
git apply ../.patch/gpio_pcf857x.patch
26+
- name: save gartennode.pem
27+
working-directory: ./zephyr_workspace/bootloader/mcuboot
28+
run: |
29+
echo "$PEM" | base64 --decode > gartennode.pem
30+
shell: bash
31+
env:
32+
PEM: ${{ secrets.ZEPHYR_SIGN_KEY }}
33+
- name: build app
34+
working-directory: ./zephyr_workspace
35+
run: |
36+
west build -b gartennode app --build-dir build -- -DEXTRA_CONF_FILE=prj.conf
37+
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
38+
- name: Publish binary
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: signed_zephyr
42+
path: zephyr_workspace/signed_zephyr.bin

custom_boards

0 commit comments

Comments
 (0)