diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..606e17b --- /dev/null +++ b/.github/workflows/build.yml @@ -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 \ No newline at end of file diff --git a/samples/ifm_sample_app/boards/native_posix_64.conf b/samples/ifm_sample_app/boards/native_posix_64.conf new file mode 100644 index 0000000..77c5be9 --- /dev/null +++ b/samples/ifm_sample_app/boards/native_posix_64.conf @@ -0,0 +1,3 @@ +CONFIG_SPI_EMUL=y +CONFIG_EMUL=y +CONFIG_GPIO_EMUL=y \ No newline at end of file diff --git a/samples/ifm_sample_app/boards/stm32h747i_disco_stm32h747xx_m7.overlay b/samples/ifm_sample_app/boards/stm32h747i_disco_stm32h747xx_m7.overlay new file mode 100644 index 0000000..36aea6d --- /dev/null +++ b/samples/ifm_sample_app/boards/stm32h747i_disco_stm32h747xx_m7.overlay @@ -0,0 +1,3 @@ +&gpioe { + status="okay"; +}; \ No newline at end of file