From 97ce9321bc18e42e32f0d729251b38836abad7bd Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Fri, 13 Sep 2024 13:16:33 +0000 Subject: [PATCH 1/2] update github jobs --- .github/workflows/build_check.yml | 16 ++++++++-------- .github/workflows/release.yml | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_check.yml b/.github/workflows/build_check.yml index 1c4bb285..dfba614b 100644 --- a/.github/workflows/build_check.yml +++ b/.github/workflows/build_check.yml @@ -9,7 +9,7 @@ jobs: name: Compile Firmware runs-on: ubuntu-latest steps: - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: | ~/.cache/pip @@ -25,11 +25,11 @@ jobs: pip install --upgrade platformio - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build PlatformIO Project run: pio run - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: firmware path: .pio/build/lora_board/firmware.bin @@ -39,7 +39,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run clang-format style check for C/C++ programs. uses: jidicula/clang-format-action@v4.10.2 with: @@ -50,7 +50,7 @@ jobs: name: Run cppcheck runs-on: ubuntu-latest steps: - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: | ~/.cache/pip @@ -66,7 +66,7 @@ jobs: pip install --upgrade platformio - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run PlatformIO Check run: pio check --fail-on-defect high --fail-on-defect medium --fail-on-defect low -e lora_board @@ -77,14 +77,14 @@ jobs: 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 + uses: actions/checkout@v4 - 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 + uses: actions/upload-artifact@v4 with: name: Cppcheck Report path: output diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index deb19560..cda9af65 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: name: Create new release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: sudo apt-get install python3-setuptools python3-wheel - run: pip3 install platformio - run: echo "$HOME/.local/bin" >> $GITHUB_PATH From 67add926b2100352d55848caaf3078b815b27fbe Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Fri, 13 Sep 2024 13:21:45 +0000 Subject: [PATCH 2/2] update setup-python --- .github/workflows/build_check.yml | 4 ++-- .github/workflows/release.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_check.yml b/.github/workflows/build_check.yml index dfba614b..1ee5d1ec 100644 --- a/.github/workflows/build_check.yml +++ b/.github/workflows/build_check.yml @@ -15,7 +15,7 @@ jobs: ~/.cache/pip ~/.platformio/.cache key: compile-cache - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: '3.10' - name: Install PlatformIO @@ -56,7 +56,7 @@ jobs: ~/.cache/pip ~/.platformio/.cache key: check-cache - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: '3.10' - name: Install PlatformIO diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cda9af65..a7e08d9e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 - run: pip install GitPython - name: check version run: ./scripts/check_version.py