add zephyr sdk #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Very simple + crude way to build an nrf connect sdk based project | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Zephyr SDK | |
run: | | |
wget -q https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.4/zephyr-sdk-0.16.4_linux-x86_64_minimal.tar.xz | |
tar xf zephyr-sdk-0.16.4_linux-x86_64_minimal.tar.xz -C ~/ | |
~/zephyr-sdk-0.16.4/setup.sh -c -t arm-zephyr-eabi | |
- name: Install West | |
run: | | |
pip3 install west | |
- name: Initialize Zephyr Workspace | |
run: | | |
# hope there's a directory above us lol | |
PROJDIR_=$(basename ${PWD}) | |
cd .. | |
west init -l ${PROJDIR_} | |
west update --narrow -o=--depth=1 | |
west build -b nrf7002dk_nrf5340_cpuapp --pristine=always ${PROJDIR_} \ | |
-- \ | |
-DCONFIG_MEMFAULT_NCS_PROJECT_KEY=\"1234\" |