Adding mecanum wheels handling to firmware for Husarion core2 board #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: core2_firmware CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
clang-format-check: | |
name: Clang-format formatting check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run clang-format style check. | |
uses: jidicula/[email protected] | |
with: | |
clang-format-version: '14' | |
include-regex: ^.*\.(cpp|hpp)$ | |
build: | |
name: Build the project | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
- name: Prepare environment | |
run: | | |
mkdir build | |
wget http://files.fictionlab.pl/husarion/Husarion_SDK-stable.zip | |
unzip Husarion_SDK-stable.zip -d hFramework | |
sudo apt install gcc-arm-none-eabi | |
- name: Configure and build the project | |
uses: threeal/[email protected] | |
with: | |
run-build: true | |
options: HFRAMEWORK_PATH=hFramework | |