Skip to content

Commit

Permalink
Added workflow to build sample and overlays for posix and stm32h7
Browse files Browse the repository at this point in the history
  • Loading branch information
vChavezB committed May 3, 2024
1 parent fe255f4 commit 6992977
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright (c) 2024, Victor Chavez
# SPDX-License-Identifier: GPL-3.0-or-later

name: Build

on:
push:
pull_request:

jobs:

build:
runs-on: ubuntu-22.04
container: ghcr.io/zephyrproject-rtos/ci:v0.26.2
env:
CMAKE_PREFIX_PATH: /opt/toolchains
ZEPHYR_VERSION: v3.6-branch
# Board to use with renode
BOARD: native_posix_64
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Initialize
run: |
cd /tmp/
west init
west update -o=--depth=1 -n
- name: Build PoC
working-directory: /tmp/
run: |
west build $GITHUB_WORKSPACE/samples/ifm_sample_app -b $BOARD --build-dir $GITHUB_WORKSPACE/build
3 changes: 3 additions & 0 deletions samples/ifm_sample_app/boards/native_posix_64.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CONFIG_SPI_EMUL=y
CONFIG_EMUL=y
CONFIG_GPIO_EMUL=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
&gpioe {
status="okay";
};

0 comments on commit 6992977

Please sign in to comment.