Skip to content

ci: add APT retries to prevent transient mirror sync failures #9

ci: add APT retries to prevent transient mirror sync failures

ci: add APT retries to prevent transient mirror sync failures #9

Workflow file for this run

name: cppcheck
on:
push:
branches:
- master
- 2.0.x
pull_request:
branches:
- master
- 2.0.x
workflow_dispatch:
jobs:
cppcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install cppcheck
run: sudo apt-get install -y cppcheck
- name: Run cppcheck
run: |
cppcheck \
--enable=warning,performance,portability \
--error-exitcode=1 \
--inline-suppr \
--suppress=missingIncludeSystem \
--suppress=unknownMacro \
-DVERSION="$(grep -oP 'AC_INIT\(\[[^\]]*\],\s*\[\K[^\]]*' configure.ac)" \
.