Skip to content

Commit

Permalink
ci: add automatic build script
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Neves <ryukokki.felipe@gmail.com>
  • Loading branch information
uLipe committed Sep 12, 2024
1 parent d45d6bb commit 805b23f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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: step

- name: Initialize
working-directory: lkmotor_mf4005_driver
run: |
pip3 install -U west
west init -l .
west update
pip3 install -r ../zephyr/scripts/requirements-base.txt
west zephyr-export
- name: Build samples
working-directory: lkmotor_mf4005_driver
run: |
git submodule update --init --recursive
west build -palways -barduino_giga_r1/stm32h747xx/m7 samples/mf4005_shell

0 comments on commit 805b23f

Please sign in to comment.