Version 2.1.1 #13
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 | |
with: | |
submodules: true | |
- name: Prepare environment | |
run: | | |
sudo apt install gcc-arm-none-eabi | |
wget http://files.fictionlab.pl/husarion/Husarion_SDK-stable.zip | |
unzip Husarion_SDK-stable.zip -d hFramework | |
mkdir build | |
- name: Configure and build the project | |
uses: threeal/[email protected] | |
with: | |
run-build: true | |
options: HFRAMEWORK_PATH=hFramework | |