Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions .github/workflows/build-mbed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@ jobs:
runs-on: ubuntu-latest
container: mbedos/mbed-os-env:latest
steps:
- name: Checkout
- name: Checkout sources
uses: actions/checkout@v2

- name: Install dependencies
- name: Build for mbed
run: |
cd mbed
pip install --upgrade mbed-cli mbed-tools
pip install --upgrade --user mbed-cli mbed-tools
mbed deploy

- name: Build
run: |
cmake -S mbed -B cmake_build -GNinja -DCMAKE_BUILD_TYPE=Debug
cmake --build cmake_build
mbed-tools configure -t GCC_ARM -m NRF52840_DK
cmake -S . -B cmake_build/NRF52840_DK/develop/GCC_ARM -GNinja -DCMAKE_BUILD_TYPE=Debug
cmake --build cmake_build/NRF52840_DK/develop/GCC_ARM
45 changes: 45 additions & 0 deletions .github/workflows/build-zephyr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build for zephyr
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build for zephyr
runs-on: ubuntu-latest
container: zephyrprojectrtos/zephyr-build:latest
steps:
- name: Get zephyr
run: |
sudo mkdir -p /workdir/zephyr
cd /workdir/zephyr
sudo west init
sudo west update
# Workaround for GitHub permission issues.
- name: Grant global rwx permission
run: |
sudo chmod 777 -R /workdir || true
sudo chmod 777 -R /github || true
sudo chmod 777 -R /home || true
sudo chmod 777 -R /__w || true
- name: Checkout sources
uses: actions/checkout@v2

- name: Build for zephyr
run: |
sudo chmod 777 -R /workdir || true
sudo chmod 777 -R /github || true
sudo chmod 777 -R /home || true
sudo chmod 777 -R /__w || true
mkdir -p zephyr/BUILD
cd zephyr/BUILD
export ZEPHYR_BASE="/workdir/zephyr/zephyr"
export Zephyr_Dir="/workdir/zephyr/zephyr"
export CMAKE_PREFIX_PATH="/workdir/zephyr/zephyr"
cmake -DBOARD=nrf52840dk_nrf52840 -GNinja ..
cmake --build .