From: "plaisthos (Code Review)" Date: Tue, 21 Nov 2023 16:59:57 +0000 References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <0ba5481265f54ac3c4b528d514804c7fdf455338-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Ib8exF1LmAQ="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Cache mbed TLS dependency and build latest 2.x mbed TLS as well List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: openvpn-devel --Ib8exF1LmAQ= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld. Hello flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/455?usp=3Demail to review the following change. Change subject: Cache mbed TLS dependency and build latest 2.x mbed TLS as = well ...................................................................... Cache mbed TLS dependency and build latest 2.x mbed TLS as well Change-Id: I39fb3f05b6245af9ae5dd666bfc53ed07e5cfb24 --- M .github/workflows/build.yaml 1 file changed, 23 insertions(+), 7 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/55/455/1 diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index cd72f3d..c1f42dd 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -366,8 +366,8 @@ fail-fast: false matrix: os: [ubuntu-22.04] - ssllib: [mbedtls3] build: [ normal, asan ] + mbedtlsver: [ v3.5.1, v2.28.6 ] include: - build: asan cflags: "-fsanitize=3Daddress -fno-sanitize-recover=3Dall -fn= o-optimize-sibling-calls -fsanitize-address-use-after-scope -fno-omit-frame= -pointer -g -O1" @@ -378,29 +378,45 @@ ldflags: "" cc: gcc - name: "${{matrix.cc}} ${{matrix.build}} - ${{matrix.os}} - ${{matrix.s= sllib}}" + name: "${{matrix.cc}} ${{matrix.build}} - ${{matrix.os}} - mbed TLS ${= {matrix.mbedtlsver}}" runs-on: ${{matrix.os}} env: CFLAGS: ${{ matrix.cflags }} LDFLAGS: ${{ matrix.ldflags }} CC: ${{matrix.cc}} UBSAN_OPTIONS: print_stacktrace=3D1 + MBEDTLS_CFLAGS: -I/opt/mbedtls/include + MBEDTLS_LIBS: -L/opt/mbedtls/lib -lmbedtls -lmbedx509 -lmbedcrypto 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: "mbedtls: checkout" + + - name: Cache mbed TLS + id: cache + uses: actions/cache@...2689... + with: + path: '/opt/mbedtls' + key: ${{ matrix.build }}-mbedtls-${{matrix.mbedtlsver}}-${{matri= x.cmakebuild}} + - name: "Mbed TLS: checkout" uses: actions/checkout@...2689... with: path: mbedtls repository: Mbed-TLS/mbedtls - ref: v3.5.0 - - name: "mbedtls: make no_test" + ref: ${{ matrix.mbedtlsver} + if: steps.cache.outputs.cache-hit !=3D 'true' + - name: "Mbed TLS: make no_test" run: make -j3 no_test SHARED=3D1 working-directory: mbedtls - - name: "mbedtls: make install" - run: sudo make install DESTDIR=3D/usr + if: steps.cache.outputs.cache-hit !=3D 'true' + - name: "Mbed TLS: make install" + run: sudo make install DESTDIR=3D/opt/mbedtls working-directory: mbedtls + if: steps.cache.outputs.cache-hit !=3D 'true' + - name: add /opt/mbedtls/lib to ld.so.conf.d + run: echo /opt/mbedtls/lib | sudo tee /etc/ld.so.conf.d/mbedtls.co= nf + - name: "ldconfig" + run: sudo ldconfig - name: Checkout OpenVPN uses: actions/checkout@...2689... - name: autoconf -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/455?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I39fb3f05b6245af9ae5dd666bfc53ed07e5cfb24 Gerrit-Change-Number: 455 Gerrit-PatchSet: 1 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: flichtenheld Gerrit-MessageType: newchange --Ib8exF1LmAQ= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld.

plaisthos would like flichtenheld to review this change.

Vi= ew Change

Cache mbed TLS dependency and build latest 2.x mbed TLS as we=
ll

Change-Id: I39fb3f05b6245af9ae5dd666bfc53ed07e5cfb24
---
M = .github/workflows/build.yaml
1 file changed, 23 insertions(+), 7 deletio= ns(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/change=
s/55/455/1
diff --git a/.github/workflows/build.yaml b/.github/work=
flows/build.yaml
index cd72f3d..c1f42dd 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workfl= ows/build.yaml
@@ -366,8 +366,8 @@
f= ail-fast: false
matrix:
os:= [ubuntu-22.04]
- = ssllib: [mbedtls3]
build: [ normal, asan ]
+ mbedtlsver: [ v3.= 5.1, v2.28.6 ]
include:
= - build: asan
cflags: "-fsanitize=3Daddr= ess -fno-sanitize-recover=3Dall -fno-optimize-sibling-calls -fsanitize-add= ress-use-after-scope -fno-omit-frame-pointer -g -O1"
@= @ -378,29 +378,45 @@
ldflags: ""
cc: gcc

- name: "${{matrix.cc}} ${{matrix.bu= ild}} - ${{matrix.os}} - ${{matrix.ssllib}}"
+ name: "${{matrix.cc}} ${{matrix.buil= d}} - ${{matrix.os}} - mbed TLS ${{matrix.mbedtlsver}}"
runs-on: ${{matrix.os}}

env:
= CFLAGS: ${{ matrix.cflags }}
LDFLAGS: ${{ matri= x.ldflags }}
CC: ${{matrix.cc}}
= UBSAN_OPTIONS: print_stacktrace=3D1
+ MBEDTLS_CFLAGS: -I/opt/mbedtls/include
<= span style=3D"color: hsl(120, 100%, 40%);">+ MBEDTLS_LIBS: -L/opt/mbed= tls/lib -lmbedtls -lmbedx509 -lmbedcrypto


steps:
- name: Install dependencies
= run: sudo apt update && sudo apt install -y liblzo2-= dev libpam0g-dev liblz4-dev linux-libc-dev man2html clang libcmocka-dev pyt= hon3-docutils python3-jinja2 python3-jsonschema libtool automake autoconf p= kg-config libcap-ng-dev libnl-genl-3-dev
- - name: "mbedtls: checkout"
+
+ - name: Cache mbed TLS
+ id: cache
+ uses: actions/cache@...2689...

+ with:+ path: '/opt/mb= edtls'
+ = key: ${{ matrix.build }}-mbedtls-${{matrix.mbedtlsver}}-${{matrix.cmakebui= ld}}
+ - name: &= quot;Mbed TLS: checkout"
uses: actions/checko= ut@...2689...
with:
pat= h: mbedtls
repository: Mbed-TLS/mbedtls- ref: v3.5.0- - name: "mbedtls: m= ake no_test"
+ = ref: ${{ matrix.mbedtlsver}
+ if: steps.cache.outputs.cache-hit !=3D 'true&= #39;
+ - name: &= quot;Mbed TLS: make no_test"
run: make -j3 no= _test SHARED=3D1
working-directory: mbedtls=
- - name: "mbedtls:= make install"
- = run: sudo make install DESTDIR=3D/usr
+ if: steps.cache.outputs.cache-hit !=3D '= ;true'
+ - n= ame: "Mbed TLS: make install"
+ run: sudo make install DESTDIR=3D/opt/mbedtls
working-directory: mbedtls
+ if: steps.cache.outputs.cache-hit != =3D 'true'
+ = - name: add /opt/mbedtls/lib to ld.so.conf.d
+ run: echo /opt/mbedtls/lib | sudo tee= /etc/ld.so.conf.d/mbedtls.conf
+ - name: "ldconfig"
+ run: sudo ldconfig
= - name: Checkout OpenVPN
uses: actions/checkout@= ...2689...
- name: autoconf
<= br>

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

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I39fb3f05b6245af9ae5dd666bfc= 53ed07e5cfb24
Gerrit-Change-Number: 455
Gerrit-PatchSet: 1
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...>
Gerrit-MessageType: newchange
--Ib8exF1LmAQ=--