Skip to content

Commit

Permalink
WIP: Fix CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkra committed Sep 23, 2023
1 parent 47759da commit 7c2e12f
Showing 1 changed file with 23 additions and 36 deletions.
59 changes: 23 additions & 36 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,31 @@
name: Build firmware
on: push
name: Build

env:
ZEPHYR_VERSION: 3.4.0
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"

jobs:
NRF:
runs-on: ubuntu-20.04
strategy:
matrix:
ncs_version: [2.4]
board: [zswatch_nrf5340_cpuapp@1,zswatch_nrf5340_cpuapp@2]
build:
runs-on: ubuntu-22.04
container: ghcr.io/zephyrproject-rtos/ci:v0.26.2
env:
CMAKE_PREFIX_PATH: /opt/toolchains
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3
with:
path: project
path: ZSWatch
submodules: recursive
- name: Build ZSWatch Binaries
working-directory: project

- name: Initialize
working-directory: ZSWatch
run: |
docker run -v $PWD:/workdir/project nordicplayground/nrfconnect-sdk:v${{ matrix.ncs_version }}-branch \
west build --board ${{ matrix.board }} /workdir/project/app
west init -l app
west update -o=--depth=1 -n
Posix:
name: Posix build
runs-on: ubuntu-20.04
container:
image: ghcr.io/bcdevices/zephyr:v3.4.0-0
options: --user root
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install deps
run: |
dpkg --add-architecture i386
apt-get -y update
apt-get install --no-install-recommends -y libsdl2-dev:i386
- name: build
run: |
cd /usr/src/zephyr-3.4.0
west build --board native_posix $GITHUB_WORKSPACE/app
- name: Build firmware
working-directory: ZSWatch
run: |
west build app -p -b zswatch_nrf5340_cpuapp@3 -- -DOVERLAY_CONFIG="boards/debug.conf"

0 comments on commit 7c2e12f

Please sign in to comment.