Skip to content

Commit

Permalink
Added github action to build project
Browse files Browse the repository at this point in the history
Action to build NRF and posix variants of the project.
  • Loading branch information
vChavezB authored and jakkra committed Aug 1, 2023
1 parent add2150 commit 65dd119
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build firmware
on: push

env:
ZEPHYR_VERSION: 3.4.0

jobs:
NRF:
runs-on: ubuntu-20.04
strategy:
matrix:
ncs_version: [2.4]
board: [zswatch_nrf5340_cpuapp]
container:
image: nordicplayground/nrfconnect-sdk:v${{ matrix.ncs_version }}-branch
options: --user root
steps:
- name: Clone repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build ZSWatch Binaries
run: west build --board ${{ matrix.board }} app

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

0 comments on commit 65dd119

Please sign in to comment.