cppcheck 1.4.5__tar.gz → 1.4.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cppcheck-1.4.5 → cppcheck-1.4.7}/.copier-answers.yml +2 -3
- {cppcheck-1.4.5 → cppcheck-1.4.7}/.devcontainer/devcontainer.json +1 -1
- cppcheck-1.4.7/.github/workflows/cd.yml +79 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/.github/workflows/ci.yml +18 -21
- {cppcheck-1.4.5 → cppcheck-1.4.7}/.github/workflows/codeql.yml +3 -4
- {cppcheck-1.4.5 → cppcheck-1.4.7}/.github/workflows/pages.yml +1 -2
- cppcheck-1.4.7/.github/workflows/ports.yml +86 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/.github/workflows/renovate.yml +3 -3
- cppcheck-1.4.7/.github/workflows/reuseable_cibuildwheel.yml +67 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/.pre-commit-config.yaml +8 -2
- {cppcheck-1.4.5 → cppcheck-1.4.7}/.releaserc.js +2 -1
- {cppcheck-1.4.5 → cppcheck-1.4.7}/.renovaterc.json +30 -10
- {cppcheck-1.4.5 → cppcheck-1.4.7}/PKG-INFO +1 -1
- cppcheck-1.4.7/cmake/presets/base.json +101 -0
- cppcheck-1.4.7/cmake/presets/default.json +54 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/generators/ninja.json +17 -5
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/x64-linux-gcc.json +0 -19
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/x64-linux-llvm.json +0 -19
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/x64-mingw-dynamic-windows-mingw.json +0 -19
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/x64-mingw-static-windows-mingw.json +0 -19
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/vcpkg/bootstrap/vcpkg_configure.cmake +27 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/vcpkg/ports/cppcheck/portfile.cmake +1 -1
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/vcpkg/ports/cppcheck/vcpkg.json +1 -1
- {cppcheck-1.4.5 → cppcheck-1.4.7}/noxfile.py +1 -2
- {cppcheck-1.4.5 → cppcheck-1.4.7}/pyproject.toml +3 -1
- {cppcheck-1.4.5 → cppcheck-1.4.7}/src/cppcheck/_version.py +2 -2
- {cppcheck-1.4.5 → cppcheck-1.4.7}/tests/test_package.py +1 -1
- {cppcheck-1.4.5 → cppcheck-1.4.7}/vcpkg.json +9 -4
- cppcheck-1.4.5/.github/workflows/cd.yml +0 -144
- cppcheck-1.4.5/cmake/presets/base.json +0 -48
- cppcheck-1.4.5/cmake/presets/default.json +0 -47
- cppcheck-1.4.5/cmake/vcpkg/ports/pcre/export-cmake-targets.patch +0 -23
- cppcheck-1.4.5/cmake/vcpkg/ports/pcre/pcre-8.4.5_fix_check_function_exists_for_arm-androi_builds.patch +0 -32
- cppcheck-1.4.5/cmake/vcpkg/ports/pcre/pcre-8.45_fix_postfix_for_debug_Windows_builds.patch +0 -161
- cppcheck-1.4.5/cmake/vcpkg/ports/pcre/pcre-8.45_suppress_cmake_and_compiler_warnings-errors.patch +0 -18
- cppcheck-1.4.5/cmake/vcpkg/ports/pcre/portfile.cmake +0 -79
- cppcheck-1.4.5/cmake/vcpkg/ports/pcre/unofficial-pcre-config.cmake +0 -1
- cppcheck-1.4.5/cmake/vcpkg/ports/pcre/vcpkg.json +0 -18
- {cppcheck-1.4.5 → cppcheck-1.4.7}/.editorconfig +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/.gitattributes +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/.github/codecov.yml +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/.github/codeql-config.yml +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/.github/matchers/pylint.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/.github/workflows/semantic-release.yml +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/.gitignore +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/.markdownlint.yaml +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/.vscode/launch.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/.vscode/settings.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/CMakeLists.txt +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/CMakePresets.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/LICENSE +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/README.md +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/arch/x64.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/compilers/gcc.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/compilers/llvm.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/compilers/mingw.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/compilers/msvc.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/os/darwin.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/os/linux.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/os/windows.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/toolchains/vcpkg.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/triplets/x64-linux.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/triplets/x64-mingw-dynamic.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/triplets/x64-mingw-static.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/triplets/x64-osx.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/triplets/x64-windows.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/x64-osx-gcc.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/x64-osx-llvm.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/x64-windows-llvm.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/presets/x64-windows-msvc.json +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/vcpkg/bootstrap/vcpkg-config.cmake +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/vcpkg/bootstrap/vcpkg_bootstrap.cmake +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/vcpkg/bootstrap/vcpkg_chainload_toolchain.cmake +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/vcpkg/bootstrap/vcpkg_export_mode.cmake +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/vcpkg/bootstrap/vcpkg_load_triplet.cmake +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/vcpkg/bootstrap/vcpkg_skip_install_on_reconfigure.cmake +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/vcpkg/ports/README.md +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/vcpkg/scripts/build_type.cmake +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/vcpkg/scripts/toolchains/README.md +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/vcpkg/triplets/README.md +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/cmake/vcpkg/vcpkg.toolchain.cmake +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/docs/api/index.md +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/docs/conf.py +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/docs/index.md +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/src/cppcheck/__init__.py +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/src/cppcheck/__main__.py +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/src/cppcheck/_version.pyi +0 -0
- {cppcheck-1.4.5 → cppcheck-1.4.7}/src/cppcheck/py.typed +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
|
|
2
|
+
_commit: v0.8.24
|
|
2
3
|
_src_path: https://github.com/serious-scaffold/ss-pybind11
|
|
3
4
|
author_email: msclock@126.com
|
|
4
5
|
author_name: l.feng
|
|
@@ -22,5 +23,3 @@ repo_namespace: msclock
|
|
|
22
23
|
repo_platform: github
|
|
23
24
|
use_codecov: true
|
|
24
25
|
use_codeql: true
|
|
25
|
-
use_conan: false
|
|
26
|
-
use_cpm: false
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// https://github.com/devcontainers/images/tree/main/src/base-ubuntu
|
|
3
3
|
{
|
|
4
4
|
"name": "cppcheck-wheel",
|
|
5
|
-
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-
|
|
5
|
+
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04",
|
|
6
6
|
"capAdd": [
|
|
7
7
|
// Enable ptrace-based debugging for C++
|
|
8
8
|
"SYS_PTRACE"
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
name: CD
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
schedule:
|
|
6
|
+
- cron: 0 0 * * 5
|
|
7
|
+
release:
|
|
8
|
+
types:
|
|
9
|
+
- published
|
|
10
|
+
|
|
11
|
+
concurrency:
|
|
12
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
13
|
+
cancel-in-progress: true
|
|
14
|
+
|
|
15
|
+
env:
|
|
16
|
+
FORCE_COLOR: 3
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
build_sdist:
|
|
20
|
+
name: Build SDist
|
|
21
|
+
runs-on: ubuntu-24.04
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
24
|
+
with:
|
|
25
|
+
fetch-depth: 0
|
|
26
|
+
|
|
27
|
+
- name: Build SDist
|
|
28
|
+
run: pipx run build --sdist
|
|
29
|
+
|
|
30
|
+
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
|
|
31
|
+
with:
|
|
32
|
+
name: cibw-sdist
|
|
33
|
+
path: dist/*.tar.gz
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
build_wheels:
|
|
37
|
+
uses: ./.github/workflows/reuseable_cibuildwheel.yml
|
|
38
|
+
secrets: inherit
|
|
39
|
+
with:
|
|
40
|
+
auto: true
|
|
41
|
+
extra: true
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
check_dist:
|
|
45
|
+
name: Check dist
|
|
46
|
+
needs: [build_wheels, build_sdist]
|
|
47
|
+
runs-on: ubuntu-24.04
|
|
48
|
+
steps:
|
|
49
|
+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
|
|
50
|
+
with:
|
|
51
|
+
pattern: cibw-*
|
|
52
|
+
path: dist
|
|
53
|
+
merge-multiple: true
|
|
54
|
+
|
|
55
|
+
- run: pipx run twine check --strict dist/*
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
upload_all:
|
|
59
|
+
needs: [build_wheels, build_sdist, check_dist]
|
|
60
|
+
environment:
|
|
61
|
+
name: pypi
|
|
62
|
+
url: https://pypi.org/project/cppcheck-wheel
|
|
63
|
+
permissions:
|
|
64
|
+
id-token: write
|
|
65
|
+
runs-on: ubuntu-24.04
|
|
66
|
+
if: github.event_name == 'release' && github.event.action == 'published'
|
|
67
|
+
|
|
68
|
+
steps:
|
|
69
|
+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
|
|
70
|
+
with:
|
|
71
|
+
pattern: cibw-*
|
|
72
|
+
path: dist
|
|
73
|
+
merge-multiple: true
|
|
74
|
+
|
|
75
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
76
|
+
env:
|
|
77
|
+
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
78
|
+
with:
|
|
79
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
@@ -41,21 +41,18 @@ jobs:
|
|
|
41
41
|
pipx run nox -s pylint
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
checks:
|
|
46
|
-
runs-on: ${{ matrix.runs-on }}
|
|
44
|
+
wheels:
|
|
47
45
|
needs: [pre-commit]
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
uses: ./.github/workflows/reuseable_cibuildwheel.yml
|
|
47
|
+
secrets: inherit
|
|
48
|
+
with:
|
|
49
|
+
auto: true
|
|
50
|
+
extra: false
|
|
53
51
|
|
|
54
|
-
include:
|
|
55
|
-
- python-version: pypy-3.10
|
|
56
|
-
runs-on: ubuntu-22.04
|
|
57
52
|
|
|
58
|
-
|
|
53
|
+
codecov:
|
|
54
|
+
runs-on: ubuntu-24.04
|
|
55
|
+
needs: [pre-commit]
|
|
59
56
|
|
|
60
57
|
steps:
|
|
61
58
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
@@ -63,18 +60,18 @@ jobs:
|
|
|
63
60
|
fetch-depth: 0
|
|
64
61
|
|
|
65
62
|
- name: Cache
|
|
66
|
-
uses: actions/cache@
|
|
63
|
+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
|
|
67
64
|
with:
|
|
68
65
|
path: |
|
|
69
66
|
~/vcpkg
|
|
70
67
|
~/.cache/pip
|
|
71
68
|
~/.cache/vcpkg
|
|
72
|
-
key:
|
|
73
|
-
restore-keys:
|
|
69
|
+
key: codecov-${{ hashFiles('vcpkg.json') }}
|
|
70
|
+
restore-keys: codecov-${{ hashFiles('vcpkg.json') }}
|
|
74
71
|
|
|
75
72
|
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
|
|
76
73
|
with:
|
|
77
|
-
python-version:
|
|
74
|
+
python-version: 3.x
|
|
78
75
|
|
|
79
76
|
- name: Install package
|
|
80
77
|
run: python -m pip install .[test] -v
|
|
@@ -85,13 +82,12 @@ jobs:
|
|
|
85
82
|
--durations=20
|
|
86
83
|
|
|
87
84
|
- name: Upload coverage report
|
|
88
|
-
uses: codecov/codecov-action@
|
|
85
|
+
uses: codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e # v5.1.1
|
|
89
86
|
|
|
90
87
|
|
|
91
88
|
check-docs:
|
|
92
89
|
runs-on: ubuntu-24.04
|
|
93
90
|
needs: [pre-commit]
|
|
94
|
-
timeout-minutes: 15
|
|
95
91
|
|
|
96
92
|
steps:
|
|
97
93
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
@@ -99,7 +95,7 @@ jobs:
|
|
|
99
95
|
fetch-depth: 0
|
|
100
96
|
|
|
101
97
|
- name: Cache
|
|
102
|
-
uses: actions/cache@
|
|
98
|
+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
|
|
103
99
|
with:
|
|
104
100
|
path: |
|
|
105
101
|
~/vcpkg
|
|
@@ -122,7 +118,8 @@ jobs:
|
|
|
122
118
|
pass:
|
|
123
119
|
if: always()
|
|
124
120
|
needs:
|
|
125
|
-
-
|
|
121
|
+
- wheels
|
|
122
|
+
- codecov
|
|
126
123
|
- check-docs
|
|
127
124
|
runs-on: ubuntu-24.04
|
|
128
125
|
timeout-minutes: 2
|
|
@@ -136,5 +133,5 @@ jobs:
|
|
|
136
133
|
jobs: ${{ toJSON(needs) }}
|
|
137
134
|
|
|
138
135
|
- name: Approve pr if all jobs succeeded
|
|
139
|
-
if: contains(github.event.pull_request.labels.*.name, 'auto-approval')
|
|
136
|
+
if: contains(github.event.pull_request.labels.*.name, 'auto-approval') && contains(github.actor, '[bot]')
|
|
140
137
|
uses: hmarr/auto-approve-action@v4
|
|
@@ -31,7 +31,6 @@ jobs:
|
|
|
31
31
|
analyze:
|
|
32
32
|
name: Analyze
|
|
33
33
|
runs-on: ubuntu-24.04
|
|
34
|
-
timeout-minutes: 15
|
|
35
34
|
permissions:
|
|
36
35
|
actions: read
|
|
37
36
|
contents: read
|
|
@@ -50,13 +49,13 @@ jobs:
|
|
|
50
49
|
fetch-depth: 0
|
|
51
50
|
|
|
52
51
|
- name: Initialize CodeQL
|
|
53
|
-
uses: github/codeql-action/init@
|
|
52
|
+
uses: github/codeql-action/init@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
|
|
54
53
|
with:
|
|
55
54
|
languages: ${{ matrix.language }}
|
|
56
55
|
config-file: ./.github/codeql-config.yml
|
|
57
56
|
|
|
58
57
|
- name: Cache
|
|
59
|
-
uses: actions/cache@
|
|
58
|
+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
|
|
60
59
|
with:
|
|
61
60
|
path: |
|
|
62
61
|
~/vcpkg
|
|
@@ -72,4 +71,4 @@ jobs:
|
|
|
72
71
|
run: python -m pip install .[test]
|
|
73
72
|
|
|
74
73
|
- name: Perform CodeQL Analysis
|
|
75
|
-
uses: github/codeql-action/analyze@
|
|
74
|
+
uses: github/codeql-action/analyze@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
|
|
@@ -28,7 +28,6 @@ jobs:
|
|
|
28
28
|
permissions:
|
|
29
29
|
contents: write
|
|
30
30
|
id-token: write
|
|
31
|
-
timeout-minutes: 15
|
|
32
31
|
|
|
33
32
|
steps:
|
|
34
33
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
@@ -37,7 +36,7 @@ jobs:
|
|
|
37
36
|
ref: ${{ github.head_ref }}
|
|
38
37
|
|
|
39
38
|
- name: Cache
|
|
40
|
-
uses: actions/cache@
|
|
39
|
+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
|
|
41
40
|
with:
|
|
42
41
|
path: |
|
|
43
42
|
~/vcpkg
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
name: Ports
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
|
|
6
|
+
env:
|
|
7
|
+
FORCE_COLOR: 3
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
verify:
|
|
11
|
+
runs-on: ubuntu-24.04
|
|
12
|
+
permissions:
|
|
13
|
+
contents: write
|
|
14
|
+
id-token: write
|
|
15
|
+
pull-requests: write
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- name: Generate a bot token with BOT_APP_ID
|
|
19
|
+
id: bot_token
|
|
20
|
+
if: vars.BOT_APP_ID && env.BOT_PRIVATE_KEY != null
|
|
21
|
+
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1
|
|
22
|
+
env:
|
|
23
|
+
BOT_PRIVATE_KEY: ${{ secrets.BOT_PRIVATE_KEY }}
|
|
24
|
+
with:
|
|
25
|
+
app-id: ${{ vars.BOT_APP_ID }}
|
|
26
|
+
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
|
|
27
|
+
|
|
28
|
+
- name: Checkout repository
|
|
29
|
+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
30
|
+
with:
|
|
31
|
+
token: ${{ steps.bot_token.outputs.token || secrets.PAT || secrets.GITHUB_TOKEN }}
|
|
32
|
+
ref: ${{ github.head_ref }}
|
|
33
|
+
fetch-depth: 2
|
|
34
|
+
|
|
35
|
+
- name: Format vcpkg.json
|
|
36
|
+
run: |
|
|
37
|
+
vcpkg format-manifest --all $(find cmake/vcpkg/ports/ -name "vcpkg.json")
|
|
38
|
+
|
|
39
|
+
- name: Commit format vcpkg.json
|
|
40
|
+
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5
|
|
41
|
+
if: success()
|
|
42
|
+
with:
|
|
43
|
+
commit_message: 'ci: format vcpkg configuration'
|
|
44
|
+
file_pattern: vcpkg.json
|
|
45
|
+
|
|
46
|
+
- name: Exit 1 if vcpkg configuration changes have been detected
|
|
47
|
+
if: steps.auto-commit-action.outputs.changes_detected == 'true'
|
|
48
|
+
run: |
|
|
49
|
+
exit 1
|
|
50
|
+
|
|
51
|
+
- name: Verify all modules and update hash
|
|
52
|
+
run: |
|
|
53
|
+
set -x
|
|
54
|
+
for dir in cmake/vcpkg/ports/* ; do
|
|
55
|
+
if [[ ! -d $dir ]]; then continue; fi;
|
|
56
|
+
echo "Test to install $dir"
|
|
57
|
+
vcpkg remove ${dir##cmake/vcpkg/ports/} --recurse --overlay-ports=cmake/vcpkg/ports --classic || true
|
|
58
|
+
status=0
|
|
59
|
+
install_output=$(vcpkg install ${dir##cmake/vcpkg/ports/} --overlay-ports=cmake/vcpkg/ports --classic) || status=$?
|
|
60
|
+
if [[ ! $status -eq 0 ]]; then
|
|
61
|
+
echo " Update hash on $dir/portfile.cmake"
|
|
62
|
+
expected=$(echo "$install_output" | grep -oP "(?<=Expected hash: ).{128}")
|
|
63
|
+
actual=$(echo "$install_output" | grep -oP "(?<=Actual hash: ).{128}")
|
|
64
|
+
sed -i "s@${expected}@${actual}@g" "$dir/portfile.cmake"
|
|
65
|
+
echo " Expected hash: ${expected}"
|
|
66
|
+
echo " Actual hash: ${actual}"
|
|
67
|
+
fi
|
|
68
|
+
done
|
|
69
|
+
|
|
70
|
+
- name: Detect hash changes against local
|
|
71
|
+
id: filter-hash
|
|
72
|
+
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3
|
|
73
|
+
with:
|
|
74
|
+
list-files: shell
|
|
75
|
+
base: HEAD
|
|
76
|
+
filters: |
|
|
77
|
+
ports:
|
|
78
|
+
- cmake/vcpkg/ports/**
|
|
79
|
+
|
|
80
|
+
- name: Commit port hash
|
|
81
|
+
if: steps.filter-hash.outputs.ports == 'true'
|
|
82
|
+
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5
|
|
83
|
+
with:
|
|
84
|
+
file_pattern: cmake/vcpkg/ports/*
|
|
85
|
+
commit_message: 'ci: update port hash'
|
|
86
|
+
skip_fetch: true
|
|
@@ -2,8 +2,8 @@ name: Renovate
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
schedule:
|
|
5
|
-
#
|
|
6
|
-
- cron: '*/15 0-3 * *
|
|
5
|
+
# Match renovate schedule:earlyMondays and schedule:automergeMonthly
|
|
6
|
+
- cron: '*/15 0-3 * * *'
|
|
7
7
|
workflow_dispatch:
|
|
8
8
|
|
|
9
9
|
jobs:
|
|
@@ -19,7 +19,7 @@ jobs:
|
|
|
19
19
|
RENOVATE_PLATFORM: github
|
|
20
20
|
RENOVATE_REPOSITORIES: '["${{ github.repository }}"]'
|
|
21
21
|
RENOVATE_REPOSITORY_CACHE: enabled
|
|
22
|
-
image: ghcr.io/renovatebot/renovate:39.
|
|
22
|
+
image: ghcr.io/renovatebot/renovate:39.49.3@sha256:4d9cc0778b1a353b5a36be5411d11ba8edc00126161ceb9fbae460793f1f3530
|
|
23
23
|
options: --user root
|
|
24
24
|
runs-on: ubuntu-24.04
|
|
25
25
|
steps:
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
name: cibuildwheel
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_call:
|
|
5
|
+
inputs:
|
|
6
|
+
auto:
|
|
7
|
+
description: Build wheels for auto archs
|
|
8
|
+
required: true
|
|
9
|
+
type: boolean
|
|
10
|
+
extra:
|
|
11
|
+
description: Build wheels for aarch64 armv7l ppc64le & s390x
|
|
12
|
+
required: true
|
|
13
|
+
type: boolean
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
build_wheels:
|
|
17
|
+
name: On ${{ matrix.os }}, with ${{ matrix.arch }}, build ${{ matrix.build }} wheels
|
|
18
|
+
runs-on: ${{ matrix.os }}
|
|
19
|
+
|
|
20
|
+
strategy:
|
|
21
|
+
matrix:
|
|
22
|
+
os: [ubuntu-24.04] # renovate: github-runner
|
|
23
|
+
arch: [aarch64, ppc64le, s390x, armv7l, x86_64, i686]
|
|
24
|
+
build: [manylinux, musllinux]
|
|
25
|
+
qemu_arch: [aarch64 ppc64le s390x armv7l]
|
|
26
|
+
include:
|
|
27
|
+
- {os: windows-2019, arch: AMD64, build: win}
|
|
28
|
+
- {os: windows-2019, arch: x86, build: win}
|
|
29
|
+
- {os: windows-2022, arch: ARM64, build: win}
|
|
30
|
+
- {os: macos-13, arch: x86_64, build: macos}
|
|
31
|
+
- {os: macos-14, arch: arm64, build: macos}
|
|
32
|
+
|
|
33
|
+
steps:
|
|
34
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
35
|
+
if: >
|
|
36
|
+
inputs.auto && !contains(matrix.qemu_arch, matrix.arch) ||
|
|
37
|
+
inputs.extra && contains(matrix.qemu_arch, matrix.arch)
|
|
38
|
+
with:
|
|
39
|
+
fetch-depth: 0
|
|
40
|
+
|
|
41
|
+
- name: Set up msvc on Windows
|
|
42
|
+
if: runner.os == 'Windows' && inputs.auto && !contains(matrix.qemu_arch, matrix.arch)
|
|
43
|
+
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1
|
|
44
|
+
with:
|
|
45
|
+
arch: ${{ matrix.arch }}
|
|
46
|
+
|
|
47
|
+
- name: Set up QEMU
|
|
48
|
+
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
|
|
49
|
+
if: runner.os == 'Linux' && inputs.extra && contains(matrix.qemu_arch, matrix.arch)
|
|
50
|
+
|
|
51
|
+
- name: Build wheels
|
|
52
|
+
if: >
|
|
53
|
+
inputs.auto && !contains(matrix.qemu_arch, matrix.arch) ||
|
|
54
|
+
inputs.extra && contains(matrix.qemu_arch, matrix.arch)
|
|
55
|
+
uses: pypa/cibuildwheel@ee63bf16da6cddfb925f542f2c7b59ad50e93969 # v2.22.0
|
|
56
|
+
env:
|
|
57
|
+
CIBW_ARCHS: ${{ matrix.arch }}
|
|
58
|
+
CIBW_BUILD: cp39-${{ matrix.build }}*
|
|
59
|
+
|
|
60
|
+
- name: Upload wheels
|
|
61
|
+
if: >
|
|
62
|
+
inputs.auto && !contains(matrix.qemu_arch, matrix.arch) ||
|
|
63
|
+
inputs.extra && contains(matrix.qemu_arch, matrix.arch)
|
|
64
|
+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
|
|
65
|
+
with:
|
|
66
|
+
name: cibw-${{ matrix.os }}-${{ matrix.build }}-${{ matrix.arch }}
|
|
67
|
+
path: wheelhouse/*.whl
|
|
@@ -48,7 +48,7 @@ repos:
|
|
|
48
48
|
|
|
49
49
|
# Strong lint from ruff
|
|
50
50
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
51
|
-
rev: v0.8.
|
|
51
|
+
rev: v0.8.2
|
|
52
52
|
hooks:
|
|
53
53
|
- id: ruff
|
|
54
54
|
args: [--fix, --show-fixes]
|
|
@@ -130,9 +130,15 @@ repos:
|
|
|
130
130
|
hooks:
|
|
131
131
|
- id: shellcheck
|
|
132
132
|
|
|
133
|
+
# Check for markdown
|
|
134
|
+
- repo: https://github.com/igorshubovych/markdownlint-cli
|
|
135
|
+
rev: v0.43.0
|
|
136
|
+
hooks:
|
|
137
|
+
- id: markdownlint-fix
|
|
138
|
+
|
|
133
139
|
# Check for renovate config
|
|
134
140
|
- repo: https://github.com/renovatebot/pre-commit-hooks
|
|
135
|
-
rev: 39.
|
|
141
|
+
rev: 39.49.3
|
|
136
142
|
hooks:
|
|
137
143
|
- id: renovate-config-validator
|
|
138
144
|
stages: [manual]
|
|
@@ -30,7 +30,8 @@ module.exports = {
|
|
|
30
30
|
{ type: "ci", release: false },
|
|
31
31
|
{ type: "docs", release: false },
|
|
32
32
|
{ type: "test", release: false },
|
|
33
|
-
{ scope:
|
|
33
|
+
{ scope: "*no-release*", release: false },
|
|
34
|
+
{ type: "chore", scope: "cppcheck", release: "patch" },
|
|
34
35
|
],
|
|
35
36
|
parseOpts: {
|
|
36
37
|
noteKeywords: ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
|
|
@@ -8,22 +8,28 @@
|
|
|
8
8
|
"automergeType": "pr",
|
|
9
9
|
"automergeStrategy": "merge-commit",
|
|
10
10
|
"ignoreScripts": false,
|
|
11
|
-
"platformAutomerge":
|
|
11
|
+
"platformAutomerge": false,
|
|
12
12
|
"packageRules": [
|
|
13
13
|
{
|
|
14
|
+
"automerge": true,
|
|
15
|
+
"addLabels": [
|
|
16
|
+
"auto-approval"
|
|
17
|
+
],
|
|
18
|
+
"extends": [
|
|
19
|
+
"schedule:earlyMondays",
|
|
20
|
+
"schedule:automergeMonthly"
|
|
21
|
+
],
|
|
14
22
|
"matchUpdateTypes": [
|
|
15
23
|
"minor",
|
|
16
24
|
"patch",
|
|
17
25
|
"pin",
|
|
18
26
|
"digest"
|
|
19
|
-
]
|
|
20
|
-
"automerge": true
|
|
27
|
+
]
|
|
21
28
|
},
|
|
22
29
|
{
|
|
23
30
|
"description": "Group renovate docker tag and pre-commit-hooks tag",
|
|
24
31
|
"groupName": "renovate group",
|
|
25
32
|
"addLabels": [
|
|
26
|
-
"auto-approval",
|
|
27
33
|
"renovate"
|
|
28
34
|
],
|
|
29
35
|
"matchDatasources": [
|
|
@@ -55,20 +61,34 @@
|
|
|
55
61
|
"datasourceTemplate": "pypi",
|
|
56
62
|
"fileMatch": [
|
|
57
63
|
"^\\.github/workflows/.+\\.yml$",
|
|
58
|
-
"^\\.renovaterc\\.json$"
|
|
59
|
-
"^Makefile$"
|
|
64
|
+
"^\\.renovaterc\\.json$"
|
|
60
65
|
],
|
|
61
66
|
"matchStrings": [
|
|
62
67
|
"pipx? install.* (?<depName>.*?)==(?<currentValue>.*?)[\\s\";]"
|
|
63
68
|
]
|
|
64
69
|
},
|
|
65
70
|
{
|
|
66
|
-
"
|
|
71
|
+
"customType": "regex",
|
|
72
|
+
"datasourceTemplate": "github-runners",
|
|
73
|
+
"depTypeTemplate": "github-runner",
|
|
74
|
+
"description": "Match GitHub runner defined in GitHub Actions matrix strategy",
|
|
75
|
+
"fileMatch": [
|
|
76
|
+
"^\\.github/workflows/.+\\.yml$"
|
|
77
|
+
],
|
|
78
|
+
"matchStringsStrategy": "recursive",
|
|
79
|
+
"matchStrings": [
|
|
80
|
+
"[-:] (.*) # renovate: github-runner",
|
|
81
|
+
"(?<depName>ubuntu|windows|macos)-(?<currentValue>[\\d\\.\\-\\w]+)"
|
|
82
|
+
],
|
|
83
|
+
"versioningTemplate": "docker"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"description": "Update microsoft vcpkg baseline",
|
|
67
87
|
"customType": "regex",
|
|
68
88
|
"currentValueTemplate": "master",
|
|
69
89
|
"datasourceTemplate": "git-refs",
|
|
70
90
|
"depNameTemplate": "https://github.com/microsoft/vcpkg",
|
|
71
|
-
"depTypeTemplate": "vcpkg-
|
|
91
|
+
"depTypeTemplate": "vcpkg-baseline",
|
|
72
92
|
"fileMatch": [
|
|
73
93
|
"^vcpkg\\.json$"
|
|
74
94
|
],
|
|
@@ -77,11 +97,11 @@
|
|
|
77
97
|
]
|
|
78
98
|
},
|
|
79
99
|
{
|
|
80
|
-
"description": "Update
|
|
100
|
+
"description": "Update custom registry baseline",
|
|
81
101
|
"customType": "regex",
|
|
82
102
|
"currentValueTemplate": "master",
|
|
83
103
|
"datasourceTemplate": "git-refs",
|
|
84
|
-
"depTypeTemplate": "
|
|
104
|
+
"depTypeTemplate": "vcpkg-baseline",
|
|
85
105
|
"fileMatch": [
|
|
86
106
|
"^vcpkg\\.json$"
|
|
87
107
|
],
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 6,
|
|
3
|
+
"include": [
|
|
4
|
+
"generators/ninja.json",
|
|
5
|
+
"toolchains/vcpkg.json"
|
|
6
|
+
],
|
|
7
|
+
"configurePresets": [
|
|
8
|
+
{
|
|
9
|
+
"name": "base",
|
|
10
|
+
"hidden": true,
|
|
11
|
+
"inherits": [
|
|
12
|
+
"ninja",
|
|
13
|
+
"vcpkg"
|
|
14
|
+
],
|
|
15
|
+
"binaryDir": "${sourceDir}/out/build/${presetName}",
|
|
16
|
+
"installDir": "${sourceDir}/out/install/${presetName}",
|
|
17
|
+
"cacheVariables": {
|
|
18
|
+
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
|
|
19
|
+
"CMAKE_COMPILE_WARNING_AS_ERROR": false,
|
|
20
|
+
"CMAKE_BUILD_TYPE": "Debug",
|
|
21
|
+
"CMAKE_VERBOSE_MAKEFILE": "FALSE"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "base-config",
|
|
26
|
+
"hidden": true,
|
|
27
|
+
"inherits": [
|
|
28
|
+
"ninja-config",
|
|
29
|
+
"vcpkg"
|
|
30
|
+
],
|
|
31
|
+
"binaryDir": "${sourceDir}/out/build/${presetName}",
|
|
32
|
+
"installDir": "${sourceDir}/out/install/${presetName}",
|
|
33
|
+
"cacheVariables": {
|
|
34
|
+
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
|
|
35
|
+
"CMAKE_COMPILE_WARNING_AS_ERROR": false,
|
|
36
|
+
"CMAKE_VERBOSE_MAKEFILE": "FALSE"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"buildPresets": [
|
|
41
|
+
{
|
|
42
|
+
"name": "base",
|
|
43
|
+
"hidden": true,
|
|
44
|
+
"inherits": "ninja",
|
|
45
|
+
"configurePreset": "base"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "base-config-relwithdebinfo",
|
|
49
|
+
"hidden": true,
|
|
50
|
+
"inherits": "ninja-config-relwithdebinfo",
|
|
51
|
+
"configurePreset": "base-config"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "base-config-debug",
|
|
55
|
+
"hidden": true,
|
|
56
|
+
"inherits": "ninja-config-debug",
|
|
57
|
+
"configurePreset": "base-config"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"testPresets": [
|
|
61
|
+
{
|
|
62
|
+
"name": "base",
|
|
63
|
+
"hidden": true,
|
|
64
|
+
"inherits": "ninja",
|
|
65
|
+
"configurePreset": "base",
|
|
66
|
+
"output": {
|
|
67
|
+
"outputOnFailure": true
|
|
68
|
+
},
|
|
69
|
+
"execution": {
|
|
70
|
+
"noTestsAction": "error",
|
|
71
|
+
"stopOnFailure": true
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "base-config-relwithdebinfo",
|
|
76
|
+
"hidden": true,
|
|
77
|
+
"inherits": "ninja-config-relwithdebinfo",
|
|
78
|
+
"configurePreset": "base-config",
|
|
79
|
+
"output": {
|
|
80
|
+
"outputOnFailure": true
|
|
81
|
+
},
|
|
82
|
+
"execution": {
|
|
83
|
+
"noTestsAction": "error",
|
|
84
|
+
"stopOnFailure": true
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "base-config-debug",
|
|
89
|
+
"hidden": true,
|
|
90
|
+
"inherits": "ninja-config-debug",
|
|
91
|
+
"configurePreset": "base-config",
|
|
92
|
+
"output": {
|
|
93
|
+
"outputOnFailure": true
|
|
94
|
+
},
|
|
95
|
+
"execution": {
|
|
96
|
+
"noTestsAction": "error",
|
|
97
|
+
"stopOnFailure": true
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|