Skip to content

Commit 8689c36

Browse files
gmarullnashif
authored andcommitted
ci: initial CI example
CI example using Github Actions Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent d1c935e commit 8689c36

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
container: zephyrprojectrtos/ci:latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
with:
13+
path: example-application
14+
15+
- name: Cache Zephyr
16+
uses: actions/cache@v2
17+
with:
18+
path: |
19+
bootloader
20+
modules
21+
tools
22+
zephyr
23+
key: ${{ hashFiles('example-application/west.yml') }}
24+
25+
- name: Initialize
26+
working-directory: example-application
27+
run: |
28+
pip3 install -U west
29+
west init -l .
30+
west update
31+
pip3 install -r ../zephyr/scripts/requirements-base.txt
32+
33+
- name: Build firmware
34+
working-directory: example-application
35+
run: |
36+
west build -b custom_plank -s app
37+
38+
- name: Archive firmware
39+
uses: actions/upload-artifact@v2
40+
with:
41+
name: firmware
42+
path: example-application/build/zephyr/zephyr.*

0 commit comments

Comments
 (0)