Skip to content

Commit 4788aab

Browse files
flichtenheldcron2
authored andcommitted
GHA: Configure Renovate
Maintain GitHub actions and other version references in GHA. Switch some GHA references from branch versions to tag version so the pinning works correctly. Change-Id: I06253be7ed783e3bf30e7df1d6da8ca888016711 Signed-off-by: Frank Lichtenheld <[email protected]> Acked-by: Yuriy Darnobyt <[email protected]> Message-Id: <[email protected]> URL: https://www.mail-archive.com/[email protected]/msg29087.html Signed-off-by: Gert Doering <[email protected]>
1 parent dac076f commit 4788aab

File tree

2 files changed

+48
-6
lines changed

2 files changed

+48
-6
lines changed

.github/workflows/build.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ jobs:
5252
uses: actions/checkout@v4
5353

5454
- name: Restore from cache and install vcpkg
55-
uses: lukka/run-vcpkg@v11
55+
uses: lukka/run-vcpkg@v11.5
5656
with:
5757
vcpkgGitCommitId: 8d3649ba34aab36914ddd897958599aa0a91b08e
5858
vcpkgJsonGlob: '**/mingw/vcpkg.json'
5959

6060
- name: Run CMake with vcpkg.json manifest
61-
uses: lukka/run-cmake@v10
61+
uses: lukka/run-cmake@v10.7
6262
with:
6363
configurePreset: mingw-${{ matrix.arch }}
6464
buildPreset: mingw-${{ matrix.arch }}
@@ -274,26 +274,26 @@ jobs:
274274
runs-on: windows-latest
275275
steps:
276276
- uses: actions/checkout@v4
277-
- uses: lukka/get-cmake@latest
277+
- uses: lukka/get-cmake@v3.30.1
278278

279279
- name: Install rst2html
280280
run: python -m pip install --upgrade pip docutils
281281

282282
- name: Restore artifacts, or setup vcpkg (do not install any package)
283-
uses: lukka/run-vcpkg@v11
283+
uses: lukka/run-vcpkg@v11.5
284284
with:
285285
vcpkgGitCommitId: 8d3649ba34aab36914ddd897958599aa0a91b08e
286286
vcpkgJsonGlob: '**/windows/vcpkg.json'
287287

288288
- name: Run CMake with vcpkg.json manifest (NO TESTS)
289-
uses: lukka/run-cmake@v10
289+
uses: lukka/run-cmake@v10.7
290290
if: ${{ matrix.arch == 'arm64' }}
291291
with:
292292
configurePreset: win-${{ matrix.arch }}-release
293293
buildPreset: win-${{ matrix.arch }}-release
294294

295295
- name: Run CMake with vcpkg.json manifest
296-
uses: lukka/run-cmake@v10
296+
uses: lukka/run-cmake@v10.7
297297
if: ${{ matrix.arch != 'arm64' }}
298298
with:
299299
configurePreset: win-${{ matrix.arch }}-release
@@ -344,6 +344,7 @@ jobs:
344344
uses: actions/checkout@v4
345345
with:
346346
path: libressl
347+
# versioning=semver-coerced
347348
repository: libressl/portable
348349
ref: v3.8.3
349350
- name: "libressl: autogen.sh"
@@ -403,6 +404,7 @@ jobs:
403404
uses: actions/checkout@v4
404405
with:
405406
path: mbedtls
407+
# versioning=semver-coerced
406408
repository: Mbed-TLS/mbedtls
407409
ref: v3.5.2
408410
- name: "mbedtls: make no_test"

renovate.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"packageRules": [
4+
{
5+
"matchDepTypes": [
6+
"action"
7+
],
8+
"groupName": "github actions",
9+
"pinDigests": true,
10+
"extends": [
11+
"schedule:monthly"
12+
]
13+
},
14+
{
15+
"matchDepNames": [
16+
"vcpkg"
17+
],
18+
"extends": [
19+
"schedule:monthly"
20+
]
21+
}
22+
],
23+
"customManagers": [
24+
{
25+
"customType": "regex",
26+
"fileMatch": ["^\\.github/workflows/.+\\.ya?ml$"],
27+
"matchStrings": ["vcpkgGitCommitId:\\s*(?<currentDigest>.*?)\\n"],
28+
"currentValueTemplate": "master",
29+
"depNameTemplate": "vcpkg",
30+
"packageNameTemplate": "https://github.com/microsoft/vcpkg",
31+
"datasourceTemplate": "git-refs"
32+
},
33+
{
34+
"customType": "regex",
35+
"fileMatch": ["^\\.github/workflows/.+\\.ya?ml$"],
36+
"matchStrings": ["versioning=(?<versioning>.*?)\\n\\s*repository:\\s*(?<depName>.*?)\\n\\s*ref:\\s*(?<currentValue>.*?)\\n"],
37+
"datasourceTemplate": "github-tags"
38+
}
39+
]
40+
}

0 commit comments

Comments
 (0)