-
Notifications
You must be signed in to change notification settings - Fork 7
70 lines (58 loc) · 2.03 KB
/
test-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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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