LoRa_APRS_iGate/.github/workflows/build_check.yml

103 wiersze
3.1 KiB
YAML
Czysty Zwykły widok Historia

2022-11-16 22:10:06 +00:00
name: Integration Tests
2020-06-14 21:34:13 +00:00
2022-03-26 22:26:42 +00:00
on:
2023-02-18 10:58:25 +00:00
merge_group:
2022-03-27 00:47:54 +00:00
pull_request:
2020-06-14 21:34:13 +00:00
jobs:
2021-03-12 23:19:33 +00:00
build:
2021-05-17 08:04:05 +00:00
name: Compile Firmware
2020-08-01 08:49:56 +00:00
runs-on: ubuntu-latest
steps:
2023-02-18 11:20:44 +00:00
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio/.cache
2023-02-19 11:59:32 +00:00
key: compile-cache
2023-02-18 11:20:44 +00:00
- uses: actions/setup-python@v4
with:
2023-02-19 11:59:32 +00:00
python-version: '3.10'
- name: Install PlatformIO
shell: bash
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
2023-02-19 12:13:18 +00:00
2023-02-19 11:59:32 +00:00
- name: Checkout code
uses: actions/checkout@v3
2023-02-18 11:20:44 +00:00
- name: Build PlatformIO Project
run: pio run
2021-05-15 20:19:17 +00:00
- name: Upload artifacts
2023-02-19 11:43:07 +00:00
uses: actions/upload-artifact@v3
2020-08-01 08:49:56 +00:00
with:
name: firmware
2020-12-17 21:32:01 +00:00
path: .pio/build/lora_board/firmware.bin
2021-03-13 23:18:11 +00:00
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
steps:
2021-05-15 20:19:17 +00:00
- name: Checkout code
2023-02-19 09:58:26 +00:00
uses: actions/checkout@v3
2021-03-13 23:18:11 +00:00
- name: Run clang-format style check for C/C++ programs.
2023-02-10 21:06:53 +00:00
uses: jidicula/clang-format-action@v4.10.2
2021-03-13 23:18:11 +00:00
with:
2023-02-10 21:06:53 +00:00
clang-format-version: '14'
2023-09-23 13:37:35 +00:00
check-path: src
2021-03-13 23:18:11 +00:00
2021-05-15 20:19:17 +00:00
cppcheck:
2021-05-17 08:28:27 +00:00
name: Run cppcheck
2021-05-15 20:19:17 +00:00
runs-on: ubuntu-latest
steps:
2023-05-17 19:19:22 +00:00
- uses: actions/cache@v3
2021-05-15 20:19:17 +00:00
with:
2023-05-17 19:19:22 +00:00
path: |
~/.cache/pip
~/.platformio/.cache
key: check-cache
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install PlatformIO
shell: bash
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
2023-02-19 12:13:18 +00:00
2023-05-17 19:19:22 +00:00
- name: Checkout code
uses: actions/checkout@v3
- name: Run PlatformIO Check
2023-06-08 10:52:15 +00:00
run: pio check --fail-on-defect high --fail-on-defect medium --fail-on-defect low -e lora_board
2023-09-23 13:56:47 +00:00
cppcheck-docker:
name: Run cppcheck in Docker
runs-on: ubuntu-latest
env:
CPPCHECK_ARGS: --enable=all --std=c++20 --suppress=*:*.pio\* --inline-suppr --suppress=unusedFunction --suppress=shadowFunction:*TimeLib.cpp --suppress=unreadVariable:*TimeLib.cpp --suppress=badBitmaskCheck:*project_configuration.cpp src
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
2023-04-28 15:11:54 +00:00
hw_testing:
name: Hardware Testing
2023-08-01 05:31:26 +00:00
runs-on: ubuntu-latest
2023-02-18 11:20:44 +00:00
steps:
2023-08-01 18:47:45 +00:00
- uses: convictional/trigger-workflow-and-wait@v1.6.5
2023-05-15 20:29:17 +00:00
with:
2023-08-01 05:31:26 +00:00
owner: peterus
repo: ESP-Boards
2023-08-01 05:34:48 +00:00
github_token: ${{ secrets.PAT }}
2023-08-01 05:31:26 +00:00
workflow_file_name: lora_aprs_igate.yml
2023-08-01 18:33:38 +00:00
github_user: peterus