From: "plaisthos (Code Review)" Date: Tue, 17 Mar 2026 13:32:06 +0000 In-Reply-To: References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <68a765e576f86400fc14d086a0405d1679949266-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="yp9RbljkutE="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: GHA: Cache built crypto libraries List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: openvpn-devel --yp9RbljkutE= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld. Hello flichtenheld,=20 I'd like you to reexamine a change. Please visit http://gerrit.openvpn.net/c/openvpn/+/1577?usp=3Demail to look at the new patch set (#4). Change subject: GHA: Cache built crypto libraries ...................................................................... GHA: Cache built crypto libraries Semver code changes by Frank Change-Id: Ie21fdb01b843a7af09fcd469b08c775eee7e3745 Signed-off-by: Arne Schwabe --- M .github/workflows/build.yaml M renovate.json 2 files changed, 58 insertions(+), 15 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/77/1577/4 diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index dd8e472..186662d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -328,29 +328,43 @@ LDFLAGS: ${{ matrix.ldflags }} CC: ${{matrix.cc}} UBSAN_OPTIONS: print_stacktrace=3D1 + # versioning=3Dsemver-coerced + LIBRESSL_REPO: libressl/portable + LIBRESSL_VERSION: v4.2.1 + LIBRESSL_INSTALL: /opt/libressl steps: - name: Install dependencies run: sudo apt update && sudo apt install -y liblzo2-dev libpam0g-d= ev liblz4-dev linux-libc-dev man2html clang libcmocka-dev python3-docutils = libtool automake autoconf pkg-config libcap-ng-dev libnl-genl-3-dev + - name: Restore libressl from cache + uses: actions/cache@...3010... + id: libressl-cache + with: + path: ${{ env.LIBRESSL_INSTALL }} + key: ${{ matrix.os }}-libressl-${{matrix.build }}-${{ env.LIBRES= SL_VERSION }} - name: "libressl: checkout" + if: steps.libressl-cache.outputs.cache-hit !=3D 'true' uses: actions/checkout@...2998... # v6.0.2 with: path: libressl - # versioning=3Dsemver-coerced - repository: libressl/portable - ref: v4.2.1 + repository: ${{ env.LIBRESSL_REPO }} + ref: ${{ env.LIBRESSL_VERSION }} - name: "libressl: autogen.sh" + if: steps.libressl-cache.outputs.cache-hit !=3D 'true' env: LIBRESSL_GIT_OPTIONS: "--no-single-branch" run: ./autogen.sh working-directory: libressl - name: "libressl: configure" - run: ./configure + if: steps.libressl-cache.outputs.cache-hit !=3D 'true' + run: ./configure --prefix=3D${{ env.LIBRESSL_INSTALL }} working-directory: libressl - name: "libressl: make all" + if: steps.libressl-cache.outputs.cache-hit !=3D 'true' run: make -j3 working-directory: libressl - name: "libressl: make install" + if: steps.libressl-cache.outputs.cache-hit !=3D 'true' run: sudo make install working-directory: libressl - name: "ldconfig" @@ -360,7 +374,11 @@ - name: autoconf run: autoreconf -fvi - name: configure - run: ./configure --with-crypto-library=3Dopenssl ${{matrix.configu= reflags}} --enable-werror + run: | + OPENSSL_CFLAGS=3D"-I${{ env.LIBRESSL_INSTALL }}/include" \ + OPENSSL_LIBS=3D"-L${{ env.LIBRESSL_INSTALL }}/lib -lssl -lcrypto= " \ + LDFLAGS=3D"-Wl,-rpath=3D${{ env.LIBRESSL_INSTALL }}/lib" \ + ./configure --with-crypto-library=3Dopenssl --enable-werror ${{m= atrix.configureflags}} - name: make all run: make -j3 - name: Ensure the build uses LibreSSL @@ -396,27 +414,41 @@ LDFLAGS: ${{ matrix.ldflags }} CC: ${{matrix.cc}} UBSAN_OPTIONS: print_stacktrace=3D1 + PKG_CONFIG_PATH: /opt/mbedtls4/lib/pkgconfig + # versioning=3Dsemver-coerced + MBEDTLS_REPO: Mbed-TLS/mbedtls + MBEDTLS_VERSION: v4.0.0 + MBEDTLS_INSTALL: /opt/mbedtls4 steps: - name: Install dependencies run: sudo apt update && sudo apt install -y liblzo2-dev libpam0g-d= ev liblz4-dev linux-libc-dev man2html clang libcmocka-dev python3-docutils = python3-jinja2 python3-jsonschema libtool automake autoconf pkg-config libc= ap-ng-dev libnl-genl-3-dev + - name: Restore mbed TLS from cache + uses: actions/cache@...3010... + id: mbedtls-cache + with: + path: ${{ env.MBEDTLS_INSTALL }} + key: ${{ matrix.os }}-mbedtls-${{matrix.build }}-${{ env.MBEDTLS= _VERSION }} - name: "mbedtls: checkout" + if: steps.mbedtls-cache.outputs.cache-hit !=3D 'true' uses: actions/checkout@...2998... # v6.0.2 with: path: mbedtls submodules: recursive - # versioning=3Dsemver-coerced - repository: Mbed-TLS/mbedtls - ref: v4.0.0 + repository: ${{ env.MBEDTLS_REPO }} + ref: ${{ env.MBEDTLS_VERSION }} - uses: lukka/get-cmake@...2999... # v4.2.3 - name: "mbedtls: cmake" - run: cmake -B build + if: steps.mbedtls-cache.outputs.cache-hit !=3D 'true' + run: cmake -B build -DCMAKE_INSTALL_PREFIX=3D${{ env.MBEDTLS_INSTA= L }} working-directory: mbedtls - name: "mbedtls: cmake --build" + if: steps.mbedtls-cache.outputs.cache-hit !=3D 'true' run: cmake --build build working-directory: mbedtls - name: "mbedtls: cmake --install" - run: sudo cmake --install build --prefix /usr + if: steps.mbedtls-cache.outputs.cache-hit !=3D 'true' + run: sudo cmake --install build working-directory: mbedtls - name: Checkout OpenVPN uses: actions/checkout@...2998... # v6.0.2 @@ -426,7 +458,7 @@ run: ./configure --with-crypto-library=3Dmbedtls --enable-werror - name: make all run: make -j3 - - name: Ensure the build uses mbed TLS 4.x + - name: Ensure the build uses mbed TLS ${{ env.MBEDTLS_VERSION }} run: | ./src/openvpn/openvpn --version ./src/openvpn/openvpn --version | grep -q "library versions: mbe= d TLS 4." @@ -463,19 +495,29 @@ CXX: ${{matrix.cxx}} UBSAN_OPTIONS: print_stacktrace=3D1 AWS_LC_INSTALL: /opt/aws-lc + # versioning=3Dsemver-coerced + AWS_LC_REPO: aws/aws-lc + AWS_LC_VERSION: v1.70.0 steps: - name: Install dependencies run: sudo apt update && sudo apt install -y gcc golang make liblzo= 2-dev libpam0g-dev liblz4-dev linux-libc-dev man2html clang libcmocka-dev p= ython3-docutils python3-jinja2 python3-jsonschema libtool automake autoconf= pkg-config libcap-ng-dev libnl-genl-3-dev + - name: Restore AWS-LC from cache + uses: actions/cache@...3010... + id: aws-lc-cache + with: + path: ${{ env.AWS_LC_INSTALL }} + key: ${{ matrix.os }}-aws-lc-${{matrix.build }}-${{ env.AWS_LC_V= ERSION }} - name: "AWS-LC: checkout" + if: steps.aws-lc-cache.outputs.cache-hit !=3D 'true' uses: actions/checkout@...2998... # v6.0.2 with: path: aws-lc - # versioning=3Dsemver-coerced - repository: aws/aws-lc - ref: v1.70.0 + repository: ${{ env.AWS_LC_REPO }} + ref: ${{ env.AWS_LC_VERSION }} - uses: lukka/get-cmake@...2999... # v4.2.3 - name: "AWS-LC: build" + if: steps.aws-lc-cache.outputs.cache-hit !=3D 'true' run: | mkdir build cd build diff --git a/renovate.json b/renovate.json index d0f319d..f9c62c4 100644 --- a/renovate.json +++ b/renovate.json @@ -40,9 +40,10 @@ "/^\\.github/workflows/.+\\.ya?ml$/" ], "matchStrings": [ - "versioning=3D(?.*?)\\n\\s*repository:\\s*(?.*?)\\n\\s*ref:\\s*(?.*?)\\n" + "versioning=3D(?.*?)\\n\\s*.*?_REPO:\\s*(?.*?)\\n\\s*.*?_VERSION:\\s*(?.*?)\\n" ], "datasourceTemplate": "github-tags" } + ] } -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1577?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newpatchset Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ie21fdb01b843a7af09fcd469b08c775eee7e3745 Gerrit-Change-Number: 1577 Gerrit-PatchSet: 4 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: flichtenheld --yp9RbljkutE= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: flichtenheld.

plaisthos uploaded patch set #4 to this change.

<= a href=3D"http://gerrit.openvpn.net/c/openvpn/+/1577?usp=3Demail">View Chan= ge

GHA: Cache built crypto libraries

Semver cod= e changes by Frank

Change-Id: Ie21fdb01b843a7af09fcd469b08c775eee7e3= 745
Signed-off-by: Arne Schwabe <arne@...1227...>
---
M .git= hub/workflows/build.yaml
M renovate.json
2 files changed, 58 insertio= ns(+), 15 deletions(-)

git pull ssh://gerrit.ope=
nvpn.net:29418/openvpn refs/changes/77/1577/4
diff --git a/.github/=
workflows/build.yaml b/.github/workflows/build.yaml
index d= d8e472..186662d 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -328,2= 9 +328,43 @@
LDFLAGS: ${{ matrix.ldflags }} CC: ${{matrix.cc}}
UBSAN_OPTIONS: pri= nt_stacktrace=3D1
+ = # versioning=3Dsemver-coerced
+ LIBRESSL_REPO: libressl/portable
+ LIBRESSL_VERSION: v4.2.1
= + LIBRESSL_INSTALL: /opt/l= ibressl

steps:
= - name: Install dependencies
run: sudo apt updat= e && sudo apt install -y liblzo2-dev libpam0g-dev liblz4-dev linux-= libc-dev man2html clang libcmocka-dev python3-docutils libtool automake aut= oconf pkg-config libcap-ng-dev libnl-genl-3-dev
+ - name: Restore libressl from cache
+ uses: actions/cac= he@...3010...
+ = id: libressl-cache
= + with:
+ = path: ${{ env.LIBRESSL_INSTALL }}
+ key: ${{ matrix.os }}-libressl-${{matrix.build= }}-${{ env.LIBRESSL_VERSION }}
- name: "libres= sl: checkout"
+ = if: steps.libressl-cache.outputs.cache-hit !=3D 'true'
uses: actions/checkout@...2998... # v6.0.2
with:

path: libressl
- # versioning=3Dsemver-coer= ced

- reposito= ry: libressl/portable
-= ref: v4.2.1
+ repository: ${{ env.LIBRESSL_REPO }}
+ ref: ${{ env.LIBRESSL_VERSION }}
- name: "libressl: autogen.sh"
+ if: steps.libressl-cache.o= utputs.cache-hit !=3D 'true'

env: LIBRESSL_GIT_OPTIONS: "--no-single-branch"
run: ./autogen.sh
working-di= rectory: libressl
- name: "libressl: configure&= quot;
- run: ./c= onfigure
+ if:= steps.libressl-cache.outputs.cache-hit !=3D 'true'
+ run: ./configure --prefix= =3D${{ env.LIBRESSL_INSTALL }}

working-directory: = libressl
- name: "libressl: make all"
+ if: steps.libres= sl-cache.outputs.cache-hit !=3D 'true'
run= : make -j3
working-directory: libressl
<= span> - name: "libressl: make install"

+ if: steps.libressl-cache.outputs= .cache-hit !=3D 'true'
run: sudo make inst= all
working-directory: libressl
= - name: "ldconfig"
@@ -360,7 +374,11 @@
- name: autoconf
run: autorecon= f -fvi
- name: configure
- run: ./configure --with-crypto-library=3D= openssl ${{matrix.configureflags}} --enable-werror
+ run: |
+ OPENSSL_CFLAGS=3D"-I${{ env.LIBRES= SL_INSTALL }}/include" \
+ OPENSSL_LIBS=3D"-L${{ env.LIBRESSL_INSTALL }}/lib = -lssl -lcrypto" \
+ ./c= onfigure --with-crypto-library=3Dopenssl --enable-werror ${{matrix.configur= eflags}}
- name: make all
r= un: make -j3
- name: Ensure the build uses LibreSSL<= /span>
@@ -396,27 +414,41 @@
LDFLAGS: ${{ m= atrix.ldflags }}
CC: ${{matrix.cc}}
= UBSAN_OPTIONS: print_stacktrace=3D1
+ PKG_CONFIG_PATH: /opt/mbedtls4/lib/pkgconfig
+ # versioning=3D= semver-coerced
+ = MBEDTLS_REPO: Mbed-TLS/mbedtls
+ MBEDTLS_VERSION: v4.0.0
+ MBEDTLS_INSTALL: /opt/mbedtls4
=
steps:
- name: Install depend= encies
run: sudo apt update && sudo apt in= stall -y liblzo2-dev libpam0g-dev liblz4-dev linux-libc-dev man2html clang = libcmocka-dev python3-docutils python3-jinja2 python3-jsonschema libtool au= tomake autoconf pkg-config libcap-ng-dev libnl-genl-3-dev
+ - name: Restore mbed TLS from c= ache
+ uses: a= ctions/cache@...3010...
+ id: mbedtls-cache
+ with:
+ path: ${{ env.MBEDTLS_INSTALL }}
+ key: ${{ matrix.os }}-mbedtls-${{matri= x.build }}-${{ env.MBEDTLS_VERSION }}
- name: "= mbedtls: checkout"
+ if: steps.mbedtls-cache.outputs.cache-hit !=3D 'true'
uses: actions/checkout@...2998... # v6.0.2 with:
path: mbedtls
<= span> submodules: recursive

- # versioning=3Dsemver-coerced
- repository: Mbed-TLS/mbedtls
- ref: v4.0.0
+ repository: = ${{ env.MBEDTLS_REPO }}
+ ref: ${{ env.MBEDTLS_VERSION }}
- uses= : lukka/get-cmake@...2999... # v4.2.3
- name: "= mbedtls: cmake"
- = run: cmake -B build
+ if: steps.mbedtls-cache.outputs.cache-hit !=3D 'true'= ;
+ run: cmake= -B build -DCMAKE_INSTALL_PREFIX=3D${{ env.MBEDTLS_INSTAL }}
working-directory: mbedtls

- name: "= mbedtls: cmake --build"
+ if: steps.mbedtls-cache.outputs.cache-hit !=3D 'true&#= 39;
run: cmake --build build
= working-directory: mbedtls
- name: "mbedtls= : cmake --install"
- run: sudo cmake --install build --prefix /usr
+ if: steps.mbedtls-cache.outputs= .cache-hit !=3D 'true'
+ run: sudo cmake --install build
= working-directory: mbedtls
- name: Checkout OpenVPN=
uses: actions/checkout@...2998... # v6.0.2=
@@ -426,7 +458,7 @@
run: ./configure --w= ith-crypto-library=3Dmbedtls --enable-werror
- name:= make all
run: make -j3
- - name: Ensure the build uses mbed TLS 4.x=
+ - name: Ensur= e the build uses mbed TLS ${{ env.MBEDTLS_VERSION }}
= run: |
./src/openvpn/openvpn --version=
./src/openvpn/openvpn --version | grep -q "librar= y versions: mbed TLS 4."
@@ -463,19 +495,29 @@<= br> CXX: ${{matrix.cxx}}
UBSAN_OPTIONS: = print_stacktrace=3D1
AWS_LC_INSTALL: /opt/aws-lc
+ # versioning=3Dse= mver-coerced
+ A= WS_LC_REPO: aws/aws-lc
+ - name: Restore AWS-LC from cache<= br>+ uses: actions/cache= @...3010...
+ = id: aws-lc-cache
+ = with:
+ = path: ${{ env.AWS_LC_INSTALL }}
+ key: ${{ matrix.os }}-aws-lc-${{matrix.build }}-${{ = env.AWS_LC_VERSION }}
- name: "AWS-LC: checkout= "
+ if: s= teps.aws-lc-cache.outputs.cache-hit !=3D 'true'
= uses: actions/checkout@...2998... # v6.0.2
w= ith:
path: aws-lc
- # versioning=3Dsemver-coerced
- repository: aws/aws-lc
- ref: v1.70.0<= /span>
+ repository= : ${{ env.AWS_LC_REPO }}
+ ref: ${{ env.AWS_LC_VERSION }}
- uses= : lukka/get-cmake@...2999... # v4.2.3
- name: "= AWS-LC: build"
+= if: steps.aws-lc-cache.outputs.cache-hit !=3D 'true'=
run: |
mkdir build
= cd build
diff --git a/renovate.json b/reno= vate.json
index d0f319d..f9c62c4 100644
---= a/renovate.json
+++ b/renovate.json
@@ -40= ,9 +40,10 @@
"/^\\.github/workflows/.= +\\.ya?ml$/"
],
= "matchStrings": [
- "versioning=3D(?<versioning>.*?)\\n\\s= *repository:\\s*(?<depName>.*?)\\n\\s*ref:\\s*(?<currentValue>.= *?)\\n"
+ = "versioning=3D(?<versioning>.*?)\\n\\s*.*?_REPO:\\s*(?&= lt;depName>.*?)\\n\\s*.*?_VERSION:\\s*(?<currentValue>.*?)\\n"= ;
],
"dataso= urceTemplate": "github-tags"
}
+
]<= /span>
}

To view, visit change 1577. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie21fdb01b843a7af09fcd469b08= c775eee7e3745
Gerrit-Change-Number: 1577
Gerrit-PatchSet: 4
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
= --yp9RbljkutE=--