Skip to content

Test Build

Test Build #23

Workflow file for this run

name: Test Build
on:
schedule:
- cron: '25 10 * * MON'
push:
branches:
- master
jobs:
build:
name: Example Build
runs-on: ubuntu-22.04
steps:
- name: Checkout the rpeository
uses: actions/checkout@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Build the Docker image
uses: docker/build-push-action@v4
with:
context: .
load: true
tags: zephyr-ncs:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build and deploy EI Model
uses: edgeimpulse/build-deploy@v1
id: build-deploy
with:
project_id: ${{ secrets.PROJECT_ID }}
api_key: ${{ secrets.API_KEY }}
- name: Extract the EI Model
run: |
mkdir ei-model
unzip -q "${{ steps.build-deploy.outputs.deployment_file_name }}" -d ei-model
mv ei-model/edge-impulse-sdk/ .
mv ei-model/model-parameters/ .
mv ei-model/tflite-model/ .
rm -rf "${{ steps.build-deploy.outputs.deployment_file_name }}"
rm -rf ei-model/
- name: Build test app for nRF52840 on nRF52840DK
run: |
docker run --rm -v $PWD:/app zephyr-ncs:latest west build -p -b nrf52840dk_nrf52840
- name: Build test app for nRF52832 on nRF52DK
run: |
docker run --rm -v $PWD:/app zephyr-ncs:latest west build -p -b nrf52dk_nrf52832
- name: Build test app for nRF5340 on nRF5340DK
run: |
docker run --rm -v $PWD:/app zephyr-ncs:latest west build -p -b nrf5340dk_nrf5340_cpuapp
- name: Build test app for nRF5340 on Thingy53
run: |
docker run --rm -v $PWD:/app zephyr-ncs:latest west build -p -b thingy53_nrf5340_cpuapp
- name: Build test app for nRF9160 on nRF9160DK
run: |
docker run --rm -v $PWD:/app zephyr-ncs:latest west build -p -b nrf9160dk_nrf9160
- name: Build test app for nRF9160 on Thingy91
run: |
docker run --rm -v $PWD:/app zephyr-ncs:latest west build -p -b thingy91_nrf9160_ns