-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (39 loc) · 1.03 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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