Skip to content

Commit

Permalink
ci: try build
Browse files Browse the repository at this point in the history
  • Loading branch information
pilotak committed Aug 7, 2023
1 parent f66aabe commit 196c14f
Show file tree
Hide file tree
Showing 6 changed files with 677 additions and 693 deletions.
42 changes: 0 additions & 42 deletions .astylerc

This file was deleted.

9 changes: 7 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Language: Cpp
BasedOnStyle: Google
SeparateDefinitionBlocks: Always
IndentWidth: 4
EmptyLineBeforeAccessModifier: LogicalBlock
EmptyLineBeforeAccessModifier: LogicalBlock
ColumnLimit: 120
ReflowComments: true
InsertBraces: true
IndentPPDirectives: BeforeHash
AllowShortFunctionsOnASingleLine: Empty
AllowShortBlocksOnASingleLine: Empty
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,36 @@ jobs:
with:
clang-format-version: "16"
check-path: "./"

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install ARM GCC
run: |
wget -nv https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2
sudo tar -C /bin/ -xjf gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2
echo "MBED_GCC_ARM_PATH=/bin/gcc-arm-none-eabi-9-2019-q4-major/bin/" >> $GITHUB_ENV
- name: Install mbed
run: |
pip install wheel
pip install exdown==0.7.1
pip install mbed-cli
- name: Create mbed project
run: |
mbed new .
mbed deploy
- name: Extract code from README
run: |
echo 'import exdown' >> extract.py
echo 'code = exdown.extract("README.md", syntax_filter="cpp")' >> extract.py
echo 'print(code[0][0])' >> extract.py
python extract.py > main.cpp
- name: Compile
run: |
mbed compile -t GCC_ARM -m NUCLEO_F103RB
Loading

0 comments on commit 196c14f

Please sign in to comment.