/
githubmirror
/
libexpat
Обзор
Документация
Войти
/
githubmirror
/
libexpat
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
.github/workflows/cppcheck.yml
85 строк
3 KB
Sebastian Pipping
Sync file headers
10 авг 2026, 19:54
10 авг 2026, 19:54
6e16d78
Код
Авторство
О чём код?
# __ __ _ # ___\ \/ /_ __ __ _| |_ # / _ \\ /| '_ \ / _` | __| # | __// \| |_) | (_| | |_ # \___/_/\_\ .__/ \__,_|\__| # |_| XML parser # # Copyright (c) 2021-2026 Sebastian Pipping <sebastian@pipping.org> # Copyright (c) 2023 Joyce Brum <joycebrum@google.com> # Copyright (c) 2024 Dag-Erling Smørgrav <des@des.dev> # Licensed under the MIT license: # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to permit # persons to whom the Software is furnished to do so, subject to the # following conditions: # # The above copyright notice and this permission notice shall be included # in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN # NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE # USE OR OTHER DEALINGS IN THE SOFTWARE. name: Run Cppcheck on: pull_request: push: schedule: - cron: '0 2 * * 5' # Every Friday at 2am workflow_dispatch: permissions: contents: read jobs: checks: name: Run Cppcheck timeout-minutes: 30 runs-on: ubuntu-24.04 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Build and install Cppcheck (less than 2 minutes) run: | commit=e73bf44c3e49686b7495fab352d03a6c6075516b # 2.21.0 cmake_args=( -G Ninja # for faster builds -DCMAKE_BUILD_TYPE=Release # for runtime performance ) set -x git init -b main cppcheck/ pushd cppcheck/ git fetch --depth 1 https://github.com/cppcheck-opensource/cppcheck "${commit}" git -c advice.detachedHead=false checkout FETCH_HEAD popd cmake "${cmake_args[@]}" -S cppcheck/ -B build/ cmake --build build/ --parallel "$(nproc)" sudo cmake --install build/ rm -Rf cppcheck/ build/ # Smoke-test installed version [[ $(type -P cppcheck) == /usr/local/bin/cppcheck ]] cppcheck --version - name: Run Cppcheck (less than 6 minutes) run: | exec .github/workflows/scripts/mass-cppcheck.sh