Skip to content

Commit b3c56bc

Browse files
committed
chore: configure Renovate
1 parent 68e0fc7 commit b3c56bc

File tree

3 files changed

+52
-8
lines changed

3 files changed

+52
-8
lines changed

.devcontainer/Dockerfile

+13-4
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,38 @@ RUN \
3434

3535
WORKDIR /usr/src
3636

37+
# renovate: datasource=github-tags depName=ada-url/ada
38+
ENV LIBADA_VERSION=v2.9.2
39+
# renovate: datasource=github-tags depName=nodejs/llhttp
40+
ENV LLHTTP_VERSION=v9.2.1
41+
# renovate: datasource=github-tags depName=nanodbc/nanodbc
42+
ENV NANODBC_VERSION=v2.14.0
43+
# renovate: datasource=github-releases depName=libressl/portable
44+
ENV LIBRESSL_VERSION=v3.9.2
45+
3746
RUN \
38-
git clone https://github.com/ada-url/ada.git --depth 1 -b v2.9.2 && \
47+
git clone https://github.com/ada-url/ada.git --depth 1 -b "${LIBADA_VERSION}" && \
3948
cd ada && \
4049
cmake -B build -DCMAKE_BUILD_TYPE=Release -DADA_TOOLS=off -DADA_TESTING=off && \
4150
cmake --build build && \
4251
cmake --install build
4352

4453
RUN \
45-
wget -q -O - https://github.com/nodejs/llhttp/archive/refs/tags/release/v9.2.1.tar.gz | tar xzf - && \
54+
wget -q -O - "https://github.com/nodejs/llhttp/archive/refs/tags/release/${LLHTTP_VERSION}.tar.gz" | tar xzf - && \
4655
cd llhttp-release-v* && \
4756
cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON && \
4857
cmake --build build && \
4958
cmake --install build
5059

5160
RUN \
52-
git clone https://github.com/nanodbc/nanodbc.git --depth 1 -b v2.14.0 && \
61+
git clone https://github.com/nanodbc/nanodbc.git --depth 1 -b "${NANODBC_VERSION}" && \
5362
cd nanodbc && \
5463
CXX=g++ cmake -B build -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -DNANODBC_DISABLE_TESTS=ON -DNANODBC_DISABLE_EXAMPLES=ON -DNANODBC_DISABLE_LIBCXX=ON && \
5564
cmake --build build && \
5665
cmake --install build
5766

5867
RUN \
59-
wget -q -O - https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.9.2.tar.gz | tar xzf - && \
68+
wget -q -O - https://github.com/libressl/portable/releases/download/${LIBRESSL_VERSION}/libressl-${LIBRESSL_VERSION#v}.tar.gz | tar xzf - && \
6069
cd libressl-* && \
6170
cmake -B build -DCMAKE_BUILD_TYPE=Release -DLIBRESSL_APPS=OFF -DLIBRESSL_TESTS=OFF && \
6271
cmake --build build && \

.github/actions/install-dependencies/action.yml

+21-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,27 @@ runs:
2121
- name: Set up ccache
2222
uses: hendrikmuhs/ccache-action@ed74d11c0b343532753ecead8a951bb09bb34bc9 # v1.2.14
2323

24+
- name: Set package versions
25+
shell: bash
26+
run: |
27+
echo "LIBADA_VERSION=${LIBADA_VERSION}" >> "${GITHUB_ENV}"
28+
echo "LLHTTP_VERSION=${LLHTTP_VERSION}" >> "${GITHUB_ENV}"
29+
echo "NANODBC_VERSION=${NANODBC_VERSION}" >> "${GITHUB_ENV}"
30+
echo "LIBRESSL_VERSION=${LIBRESSL_VERSION}" >> "${GITHUB_ENV}"
31+
env:
32+
# renovate: datasource=github-tags depName=ada-url/ada
33+
LIBADA_VERSION: v2.9.1
34+
# renovate: datasource=github-tags depName=nodejs/llhttp
35+
LLHTTP_VERSION: v9.2.0
36+
# renovate: datasource=github-tags depName=nanodbc/nanodbc
37+
NANODBC_VERSION: v2.13.0
38+
# renovate: datasource=github-releases depName=libressl/portable
39+
LIBRESSL_VERSION: v3.9.1
40+
2441
- name: Install libada
2542
shell: bash
2643
run: |
27-
git clone https://github.com/ada-url/ada.git --depth 1 -b v2.9.2
44+
git clone https://github.com/ada-url/ada.git --depth 1 -b "${LIBADA_VERSION}"
2845
cd ada
2946
cmake -B build -DCMAKE_BUILD_TYPE=MinSizeRel -DADA_TOOLS=off -DADA_TESTING=off -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
3047
cmake --build build
@@ -33,7 +50,7 @@ runs:
3350
- name: Install llhttp
3451
shell: bash
3552
run: |
36-
wget -q -O - https://github.com/nodejs/llhttp/archive/refs/tags/release/v9.2.1.tar.gz | tar xzf -
53+
wget -q -O - "https://github.com/nodejs/llhttp/archive/refs/tags/release/${LLHTTP_VERSION}.tar.gz" | tar xzf -
3754
cd llhttp-release-v*
3855
cmake -B build -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
3956
cmake --build build
@@ -42,7 +59,7 @@ runs:
4259
- name: Install nanodbc
4360
shell: bash
4461
run: |
45-
git clone https://github.com/nanodbc/nanodbc.git --depth 1 -b v2.14.0
62+
git clone https://github.com/nanodbc/nanodbc.git --depth 1 -b "${NANODBC_VERSION}"
4663
cd nanodbc
4764
CXX=g++ cmake -B build -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -DNANODBC_DISABLE_TESTS=ON -DNANODBC_DISABLE_EXAMPLES=ON -DNANODBC_DISABLE_LIBCXX=ON -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
4865
cmake --build build
@@ -51,7 +68,7 @@ runs:
5168
- name: Install libressl
5269
shell: bash
5370
run: |
54-
wget -q -O - https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.9.2.tar.gz | tar xzf -
71+
wget -q -O - https://github.com/libressl/portable/releases/download/${LIBRESSL_VERSION}/libressl-${LIBRESSL_VERSION#v}.tar.gz | tar xzf -
5572
cd libressl-*
5673
cmake -B build -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_SHARED_LIBS=OFF -DLIBRESSL_APPS=OFF -DLIBRESSL_TESTS=OFF -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
5774
cmake --build build

.github/renovate.json

+18
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,23 @@
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": [
44
"local>sjinks/.github:renovate-config"
5+
],
6+
"customManagers": [
7+
{
8+
"customType": "regex",
9+
"fileMatch": ["^Dockerfile$"],
10+
"matchStrings": [
11+
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?( registryUrl=(?<registryUrl>.*?))?\\sENV\\s+.*?_VERSION=(?<currentValue>.*)\\s"
12+
],
13+
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
14+
},
15+
{
16+
"customType": "regex",
17+
"fileMatch": ["(^|/)\\.github/(?:workflows|actions)/.+\\.ya?ml$"],
18+
"matchStrings": [
19+
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?( registryUrl=(?<registryUrl>.*?))?\\s+.*?_VERSION:\\s*(?<currentValue>.*)\\s"
20+
],
21+
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
22+
}
523
]
624
}

0 commit comments

Comments
 (0)