From: "cron2 (Code Review)" Date: Wed, 16 Oct 2024 09:57:49 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., yura.uddr@...277... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="WU9kwc/KFlc="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: GHA: Simplify macOS builds List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld , plaisthos , uddr Cc: openvpn-devel --WU9kwc/KFlc= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#2) to the change originally created by= flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/781?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by plaisthos, Code-Review+2 by uddr Change subject: GHA: Simplify macOS builds ...................................................................... GHA: Simplify macOS builds Reduce redundant configuration. Change-Id: Ie922ce67685228eb7043749a7f1a61a33be678d2 Signed-off-by: Frank Lichtenheld Acked-by: Arne Schwabe Acked-by: Yuriy Darnobyt Message-Id: <20241015205643.25779-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg29= 552.html Signed-off-by: Gert Doering --- M .github/workflows/build.yaml 1 file changed, 13 insertions(+), 26 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/81/781/2 diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index fdd133e..3958ef0 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -211,18 +211,10 @@ strategy: fail-fast: false matrix: - ssllib: [ openssl11, openssl3, libressl] - build: [ normal, asan ] + ssllib: [openssl@...2560..., openssl@...1554..., libressl] + build: [normal, asan] os: [macos-13, macos-14, macos-15] include: - # macos14 and newer runners use ARM CPUs and homebrew uses /opt= /homebrew/ - # on ARM instead of /usr/local/ - - os: macos-13 - homebrew: /usr/local/opt - - os: macos-14 - homebrew: /opt/homebrew/opt - - os: macos-15 - homebrew: /opt/homebrew/opt - build: asan cflags: "-fsanitize=3Daddress,undefined -fno-sanitize-recover= =3Dall -fno-optimize-sibling-calls -fsanitize-address-use-after-scope -fno= -omit-frame-pointer -g -O1" ldflags: -fsanitize=3Daddress,undefined -fno-sanitize-recover= =3Dall @@ -232,35 +224,30 @@ cflags: "-O2 -g" ldflags: "" configureflags: "" - - ssllib: openssl11 - libdir: openssl@...2560... - configuressllib: "" - - ssllib: openssl3 - libdir: openssl@...1554... - configuressllib: "" - - ssllib: libressl - libdir: libressl - configuressllib: "--with-openssl-engine=3Dno" runs-on: ${{matrix.os}} - name: "${{matrix.os}} - ${{matrix.libdir}} - ${{matrix.build}}" + name: "${{matrix.os}} - ${{matrix.ssllib}} - ${{matrix.build}}" env: CFLAGS: ${{ matrix.cflags }} LDFLAGS: ${{ matrix.ldflags }} - OPENSSL_CFLAGS: "-I${{matrix.homebrew}}/${{matrix.libdir}}/include" - OPENSSL_LIBS: "-L${{matrix.homebrew}}/${{matrix.libdir}}/lib -lcrypt= o -lssl" - LZO_CFLAGS: "-I${{matrix.homebrew}}/lzo/include" - LZO_LIBS: "-L${{matrix.homebrew}}/lzo/lib -llzo2" UBSAN_OPTIONS: print_stacktrace=3D1 steps: - name: Install dependencies - run: brew install openssl@...2560... openssl@...1554... lzo lz4 ma= n2html cmocka libtool automake autoconf libressl + run: brew install ${{matrix.ssllib}} lzo lz4 man2html cmocka libto= ol automake autoconf - name: Checkout OpenVPN uses: actions/checkout@...2813... # v4 + - name: Set environment + run: | + cat >>$GITHUB_ENV < Gerrit-Reviewer: plaisthos Gerrit-Reviewer: uddr Gerrit-CC: openvpn-devel Gerrit-MessageType: newpatchset --WU9kwc/KFlc= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 uploaded patch set #2 to the change originally cr= eated by flichtenheld.

View Change

The following approvals got outda= ted and were removed: Code-Review+2 by plaisthos, Code-Review+2 by uddr

GHA: Simplify macOS build=
s

Reduce redundant configuration.

Change-Id: Ie922ce67685228e= b7043749a7f1a61a33be678d2
Signed-off-by: Frank Lichtenheld <frank@...493...= 2641...>
Acked-by: Arne Schwabe <arne-openvpn@...1227...>
Ac= ked-by: Yuriy Darnobyt <yura.uddr@...277...>
Message-Id: <20241= 015205643.25779-1-gert@...1296...>
URL: https://www.mail-archive.com/= openvpn-devel@lists.sourceforge.net/msg29552.html
Signed-off-by: Gert Do= ering <gert@...1296...>
---
M .github/workflows/build.yaml
1= file changed, 13 insertions(+), 26 deletions(-)

git pull ssh://g=
errit.openvpn.net:29418/openvpn refs/changes/81/781/2
diff --git a/=
.github/workflows/build.yaml b/.github/workflows/build.yaml
index fdd133e..3958ef0 100644
--- a/.github/workflows/buil= d.yaml
+++ b/.github/workflows/build.yaml
@= @ -211,18 +211,10 @@
strategy:
= fail-fast: false
matrix:
- ssllib: [ openssl11, openssl3, libressl]<= /span>
- build: [ norma= l, asan ]
+ ss= llib: [openssl@...2560..., openssl@...1554..., libressl]
+ build: [normal, asan] os: [macos-13, macos-14, macos-15]
= include:
- = # macos14 and newer runners use ARM CPUs and homebrew uses /opt/homebrew/
- # on ARM ins= tead of /usr/local/
- = - os: macos-13
= - homebrew: /usr/local/opt
- - os: macos-14
- homebrew: /opt/homebrew/opt
- - os: macos-15
- homebrew: /opt/homebrew= /opt

- build: asan
= cflags: "-fsanitize=3Daddress,undefined -fno-sanitize-recover=3Dall -= fno-optimize-sibling-calls -fsanitize-address-use-after-scope -fno-omit-fra= me-pointer -g -O1"
ldflags: -fsanitize=3D= address,undefined -fno-sanitize-recover=3Dall
@@ -232,35 +2= 24,30 @@
cflags: "-O2 -g"
= ldflags: ""
confi= gureflags: ""
- - ssllib: openssl11
- libdir: openssl@...2560...
- configuressllib: ""=
- - ssllib: openssl3=
- libdir: o= penssl@...1554...
- = configuressllib: ""
- - ssllib: libressl
- libdir: libressl
- configuressllib: "--with-o= penssl-engine=3Dno"

runs-on: ${= {matrix.os}}
- name:= "${{matrix.os}} - ${{matrix.libdir}} - ${{matrix.build}}"=
+ name: "${{matrix.= os}} - ${{matrix.ssllib}} - ${{matrix.build}}"
en= v:
CFLAGS: ${{ matrix.cflags }}
= LDFLAGS: ${{ matrix.ldflags }}
- OPENSSL_CFLAGS: "-I${{matrix.homebrew}}/${{matrix.li= bdir}}/include"
- = OPENSSL_LIBS: "-L${{matrix.homebrew}}/${{matrix.libdir}}/lib -lcr= ypto -lssl"
- = LZO_CFLAGS: "-I${{matrix.homebrew}}/lzo/include"
- LZO_LIBS: "-L${{matrix.hom= ebrew}}/lzo/lib -llzo2"

UBSAN_OPTIONS: print_st= acktrace=3D1
steps:
- name: Ins= tall dependencies
- = run: brew install openssl@...2560... openssl@...1554... lzo lz4 man2htm= l cmocka libtool automake autoconf libressl
+ run: brew install ${{matrix.ssllib}} lzo lz= 4 man2html cmocka libtool automake autoconf
- name: = Checkout OpenVPN
uses: actions/checkout@...2813...= # v4
+ - name: = Set environment
+ = run: |
+ = cat >>$GITHUB_ENV <<EOF;
+ OPENSSL_CFLAGS=3D-I$(brew --prefix ${{matrix.ss= llib}})/include
+ = OPENSSL_LIBS=3D-L$(brew --prefix ${{matrix.ssllib}})/lib -lcrypto -ls= sl
+ LZO_CFL= AGS=3D-I$(brew --prefix lzo)/include
+ LZO_LIBS=3D-L$(brew --prefix lzo)/lib -llzo2
+ EOF - name: autoconf
run: autoreconf -fv= i
- name: configure
- run: ./configure --enable-werror ${{matrix.con= figureflags}} ${{matrix.configuressllib}}
+ run: ./configure --enable-werror ${{matrix.co= nfigureflags}}
- name: make all
= run: make -j4
- name: configure checks

To view, visit change 781. To unsubscribe, or for he= lp writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie922ce67685228eb7043749a7f1= a61a33be678d2
Gerrit-Change-Number: 781
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-Reviewer: uddr <yura.uddr@...277...&= gt;
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: newpatchset
--WU9kwc/KFlc=--