Skip to content

Commit

Permalink
added initial workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksander Szymański <[email protected]>
  • Loading branch information
Bitterisland6 committed Aug 9, 2023
1 parent 28b1264 commit f37df71
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: PlatformIO 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 build and Husarion SDK
run: |
mkdir build
wget http://files.fictionlab.pl/husarion/Husarion_SDK-stable.zip
unzip Husarion_SDK-stable.zip -d hFramework
- name: Configure and build the project
uses: threeal/[email protected]
with:
run-build: true
options: HFRAMEWORK_PATH=../hFramework


0 comments on commit f37df71

Please sign in to comment.