generated from zephyrproject-rtos/example-application
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 957 Bytes
/
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
name: Build
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: usb-keyboard
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Setup Zephyr project
uses: zephyrproject-rtos/action-zephyr-setup@v1
with:
app-path: usb-keyboard
toolchains: arm-zephyr-eabi
- name: Build firmware
working-directory: usb-keyboard
shell: bash
run: |
west build -b nrf52840dk/nrf52840 usb-keyboard
- name: Archive firmware
uses: actions/upload-artifact@v4
with:
name: usb-keyboard-nrf52840dk
path: |
usb-keyboard/build/zephyr/zephyr.hex