From: "plaisthos (Code Review)" Date: Wed, 11 Mar 2026 15:37:35 +0000 References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: <8ad3977ebf8d5895c07d879b2906a9b3ecca3c25-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="ESbVeoG0mDE="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: [GHA] Install aws-lc under /opt/aws-lc and chache it List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: openvpn-devel --ESbVeoG0mDE= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable plaisthos has uploaded this change for review. ( http://gerrit.openvpn.net/= c/openvpn/+/1565?usp=3Demail ) Change subject: [GHA] Install aws-lc under /opt/aws-lc and chache it ...................................................................... [GHA] Install aws-lc under /opt/aws-lc and chache it The previous installation inside the OpenVPN workspace directory caused the AWS-LC installation to be deleted. And that caused to OpenSSL to be used instead of AWS-LC during the build This also removes the --enable-werror flag from AWS-LC because it currently not even close to build without warnings. Change-Id: I090f5b201d67f51d2e42df1914a8466bcfcb6bf8 --- M .github/workflows/build.yaml 1 file changed, 17 insertions(+), 6 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/65/1565/1 diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b213192..2e9b62a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -454,20 +454,29 @@ CC: ${{matrix.cc}} CXX: ${{matrix.cxx}} UBSAN_OPTIONS: print_stacktrace=3D1 - AWS_LC_INSTALL: ${{ github.workspace }}/aws-lc/aws-lc-install + AWS_LC_INSTALL: /opt/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-${{ env.AWS_LC_VERSION }} - 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.67.0 + 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 @@ -478,12 +487,14 @@ uses: actions/checkout@...2998... # v6.0.2 - name: autoconf run: autoreconf -fvi + - name: list aws-lc install + run: find ${{ env.AWS_LC_INSTALL }} - name: configure with AWS-LC run: | - OPENSSL_CFLAGS=3D"-I/${{ env.AWS_LC_INSTALL }}/include" \ - OPENSSL_LIBS=3D"-L/${{ env.AWS_LC_INSTALL }}/lib -lssl -lcrypto"= \ - LDFLAGS=3D"-Wl,-rpath=3D/${{ env.AWS_LC_INSTALL }}/lib" \ - ./configure --with-crypto-library=3Dopenssl --enable-werror + OPENSSL_CFLAGS=3D"-I${{ env.AWS_LC_INSTALL }}/include" \ + OPENSSL_LIBS=3D"-L${{ env.AWS_LC_INSTALL }}/lib -lssl -lcrypto" \ + LDFLAGS=3D"-Wl,-rpath=3D${{ env.AWS_LC_INSTALL }}/lib" \ + ./configure --with-crypto-library=3Dopenssl - name: make all run: make -j3 - name: configure checks -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1565?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newchange Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I090f5b201d67f51d2e42df1914a8466bcfcb6bf8 Gerrit-Change-Number: 1565 Gerrit-PatchSet: 1 Gerrit-Owner: plaisthos Gerrit-CC: openvpn-devel --ESbVeoG0mDE= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

plaisthos has upl= oaded this change for review.

View Change

[GHA] Install aws-lc under /opt/aws-lc and chache it

The previou= s installation inside the OpenVPN workspace directory
caused the AWS-LC = installation to be deleted. And that caused to OpenSSL
to be used instea= d of AWS-LC during the build

This also removes the --enable-werror f= lag from AWS-LC because it
currently not even close to build without war= nings.

Change-Id: I090f5b201d67f51d2e42df1914a8466bcfcb6bf8
---M .github/workflows/build.yaml
1 file changed, 17 insertions(+), 6 del= etions(-)

git pull ssh://gerrit.openvpn.net:2941=
8/openvpn refs/changes/65/1565/1
diff --git a/.github/workflows/bui=
ld.yaml b/.github/workflows/build.yaml
index b213192..2e9b6= 2a 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -454,20 +454,29 @@<= /span>
CC: ${{matrix.cc}}
CXX: ${{ma= trix.cxx}}
UBSAN_OPTIONS: print_stacktrace=3D1
- AWS_LC_INSTALL: ${{ g= ithub.workspace }}/aws-lc/aws-lc-install
+ AWS_LC_INSTALL: /opt/aws-lc
+ AWS_LC_VERSION: v1.70.0
=
steps:
- name: Install = dependencies
run: sudo apt update && sudo = apt install -y gcc golang make liblzo2-dev libpam0g-dev liblz4-dev linux-li= bc-dev man2html clang libcmocka-dev python3-docutils python3-jinja2 python3= -jsonschema libtool automake autoconf pkg-config libcap-ng-dev libnl-genl-3= -dev
+ - name: R= estore AWS-LC from cache
+ uses: actions/cache@...3010...
+ id: aws-lc-cache
+ with:
+ path: ${{ env.AWS_LC_INSTALL }}
= + key: ${{ matrix.os }= }-aws-lc-${{ env.AWS_LC_VERSION }}
- 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
reposito= ry: aws/aws-lc
- = ref: v1.67.0
+ = ref: ${{ env.AWS_LC_VERSION }}
- uses: lukka/g= et-cmake@...2999... # v4.2.3
- name: "AWS-LC: b= uild"
+ i= f: steps.aws-lc-cache.outputs.cache-hit !=3D 'true'
run: |

mkdir build
= cd build
@@ -478,12 +487,14 @@
= uses: actions/checkout@...2998... # v6.0.2
- na= me: autoconf
run: autoreconf -fvi
+ - name: list aws-lc install
+ run: find ${{ = env.AWS_LC_INSTALL }}
- name: configure with AWS-LC<= /span>
run: |
- OPENSSL_CFLAGS=3D"-I/${{ env.AWS_LC_INSTALL }}/inc= lude" \
- = OPENSSL_LIBS=3D"-L/${{ env.AWS_LC_INSTALL }}/lib -lssl -lcrypto"= \
- LDFLAGS= =3D"-Wl,-rpath=3D/${{ env.AWS_LC_INSTALL }}/lib" \
- ./configure --with-crypto-= library=3Dopenssl --enable-werror

+ OPENSSL_CFLAGS=3D"-I${{ env.AWS_LC_INSTALL }}/= include" \
+ = OPENSSL_LIBS=3D"-L${{ env.AWS_LC_INSTALL }}/lib -lssl -lcrypto&q= uot; \
+ LDF= LAGS=3D"-Wl,-rpath=3D${{ env.AWS_LC_INSTALL }}/lib" \
<= span style=3D"color: hsl(120, 100%, 40%);">+ ./configure --with-cr= ypto-library=3Dopenssl

- name: make all
run: make -j3
- name: configure checks<= /span>

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

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I090f5b201d67f51d2e42df1914a= 8466bcfcb6bf8
Gerrit-Change-Number: 1565
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --ESbVeoG0mDE=--