From 5865440b79c0d4a197b21a5fd47d8c9598c8737c Mon Sep 17 00:00:00 2001 From: Felipe Neves Date: Thu, 12 Sep 2024 20:49:28 -0300 Subject: [PATCH] ci: add automatic build script Signed-off-by: Felipe Neves --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e3d560a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +# Copyright (c) 2024, Felipe Neves +# SPDX-License-Identifier: Apache-2.0 + +name: Build + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + container: zephyrprojectrtos/ci:latest + env: + CMAKE_PREFIX_PATH: /opt/toolchains + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + submodules: recursive + path: lkmotor_mf4005_driver + + - name: Setup Zephyr project + uses: zephyrproject-rtos/action-zephyr-setup@v1 + with: + app-path: lkmotor_mf4005_driver/samples/mf4005_shell + toolchains: arm-zephyr-eabi + + # - name: Build + # run: | + # west build -palways -barduino_giga_r1/stm32h747xx/m7 samples/mf4005_shell