mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2026-04-05 14:37:03 +00:00
restructure code
This commit is contained in:
parent
8c2c217acc
commit
8f25ceddcf
57 changed files with 63 additions and 74 deletions
49
.github/workflows/build_check.yml
vendored
49
.github/workflows/build_check.yml
vendored
|
|
@ -37,17 +37,6 @@ jobs:
|
|||
formatting-check:
|
||||
name: Formatting Check
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
path:
|
||||
- 'src'
|
||||
- 'lib/BoardFinder'
|
||||
- 'lib/ConfigurationManagement'
|
||||
#- 'lib/Display'
|
||||
- 'lib/NTPClient'
|
||||
- 'lib/PowerManagement'
|
||||
- 'lib/System'
|
||||
- 'lib/TimeLib'
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
|
@ -55,7 +44,7 @@ jobs:
|
|||
uses: jidicula/clang-format-action@v4.10.2
|
||||
with:
|
||||
clang-format-version: '14'
|
||||
check-path: ${{ matrix.path }}
|
||||
check-path: src
|
||||
|
||||
cppcheck:
|
||||
name: Run cppcheck
|
||||
|
|
@ -81,24 +70,24 @@ jobs:
|
|||
- name: Run PlatformIO Check
|
||||
run: pio check --fail-on-defect high --fail-on-defect medium --fail-on-defect low -e lora_board
|
||||
|
||||
cppcheck-docker:
|
||||
name: Run cppcheck in Docker
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
CPPCHECK_ARGS: --enable=all --std=c++20 --inline-suppr -I lib/BoardFinder -I lib/ConfigurationManagement -I lib/Display -I lib/LoRa -I lib/LoRa_APRS -I lib/NTPClient -I lib/PowerManagement -I lib/System -I lib/TimeLib -i lib/Display -i lib/LoRa -i lib/NTPClient -i lib/TimeLib src lib
|
||||
steps:
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v3
|
||||
- run: docker pull facthunder/cppcheck:latest
|
||||
- name: Run cppcheck and print result
|
||||
run: docker run --rm -v ${PWD}:/src facthunder/cppcheck:latest /bin/bash -c "cppcheck $CPPCHECK_ARGS"
|
||||
- name: Run cppcheck and create html
|
||||
run: docker run --rm -v ${PWD}:/src facthunder/cppcheck:latest /bin/bash -c "cppcheck --xml $CPPCHECK_ARGS 2> report.xml && cppcheck-htmlreport --file=report.xml --report-dir=output"
|
||||
- name: Upload report
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Cppcheck Report
|
||||
path: output
|
||||
# cppcheck-docker:
|
||||
# name: Run cppcheck in Docker
|
||||
# runs-on: ubuntu-latest
|
||||
# env:
|
||||
# CPPCHECK_ARGS: --enable=all --std=c++20 --inline-suppr -I lib/BoardFinder -I lib/ConfigurationManagement -I lib/Display -I lib/LoRa -I lib/LoRa_APRS -I lib/NTPClient -I lib/PowerManagement -I lib/System -I lib/TimeLib -i lib/Display -i lib/LoRa -i lib/NTPClient -i lib/TimeLib src lib
|
||||
# steps:
|
||||
# - name: checkout code
|
||||
# uses: actions/checkout@v3
|
||||
# - run: docker pull facthunder/cppcheck:latest
|
||||
# - name: Run cppcheck and print result
|
||||
# run: docker run --rm -v ${PWD}:/src facthunder/cppcheck:latest /bin/bash -c "cppcheck $CPPCHECK_ARGS"
|
||||
# - name: Run cppcheck and create html
|
||||
# run: docker run --rm -v ${PWD}:/src facthunder/cppcheck:latest /bin/bash -c "cppcheck --xml $CPPCHECK_ARGS 2> report.xml && cppcheck-htmlreport --file=report.xml --report-dir=output"
|
||||
# - name: Upload report
|
||||
# uses: actions/upload-artifact@v3
|
||||
# with:
|
||||
# name: Cppcheck Report
|
||||
# path: output
|
||||
|
||||
hw_testing:
|
||||
name: Hardware Testing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue