From: "flichtenheld (Code Review)" Date: Wed, 16 Oct 2024 11:56:12 +0000 References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, yura.uddr@...277..., gert@...1296... Message-ID: <8df1230bbde096bee460b7d11c13fa63ad36f8f0-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="wFHt2kqzboE="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[release/2.6]: GHA: Simplify macOS builds List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: openvpn-devel , plaisthos , cron2 , uddr --wFHt2kqzboE= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: cron2, plaisthos, uddr. flichtenheld has uploaded this change for review. ( http://gerrit.openvpn.n= et/c/openvpn/+/782?usp=3Demail ) 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 Signed-off-by: Gert Doering (cherry picked from commit 33a700d61e5b1a724b00f17fa0ed75d694e2823a) --- M .github/workflows/build.yaml 1 file changed, 13 insertions(+), 26 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/82/782/1 diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e4959ba..d930197 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -192,18 +192,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 -fno-optimize-sibling-calls -fsa= nitize-address-use-after-scope -fno-omit-frame-pointer -g -O1" ldflags: -fsanitize=3Daddress @@ -213,35 +205,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@...2691... + - name: Set environment + run: | + cat >>$GITHUB_ENV < Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-Reviewer: uddr Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: cron2 Gerrit-Attention: uddr Gerrit-MessageType: newchange --wFHt2kqzboE= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: cron2, plaisthos, uddr.

flichtenheld has uploaded this change for review.

View Cha= nge

GHA: Simplify macOS builds

Reduce redundant configuration.
Change-Id: Ie922ce67685228eb7043749a7f1a61a33be678d2
Signed-off-by= : Frank Lichtenheld <frank@...2641...>
Acked-by: Arne Schwabe <= arne-openvpn@...1227...>
Acked-by: Yuriy Darnobyt <yura.uddr@...1664...= 7...>
Signed-off-by: Gert Doering <gert@...1296...>
(cherry = picked from commit 33a700d61e5b1a724b00f17fa0ed75d694e2823a)
---
M .g= ithub/workflows/build.yaml
1 file changed, 13 insertions(+), 26 deletion= s(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes=
/82/782/1
diff --git a/.github/workflows/build.yaml b/.github/workf=
lows/build.yaml
index e4959ba..d930197 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflo= ws/build.yaml
@@ -192,18 +192,10 @@
st= rategy:
fail-fast: false
matr= ix:
- ssllib: [ = openssl11, openssl3, libressl]
- build: [ normal, asan ]
+ ssllib: [openssl@...2560..., openssl@...2738...= ., libressl]
+ = build: [normal, asan]
os: [macos-13, macos-14, ma= cos-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: /op= t/homebrew/opt
- = - os: macos-15
- = homebrew: /opt/homebrew/opt
- build: asa= n
cflags: "-fsanitize=3Daddress -fno-opti= mize-sibling-calls -fsanitize-address-use-after-scope -fno-omit-frame-point= er -g -O1"
ldflags: -fsanitize=3Daddress<= /span>
@@ -213,35 +205,30 @@
cflags: = "-O2 -g"
ldflags: ""
configureflags: ""
- - ssllib: openssl11
- libdir: openssl@...2795...= ...

- config= uressllib: ""
- - ssllib: openssl3
- libdir: openssl@...1554...
- configuressllib: ""<= br>- - ssllib: libressl<= /span>
- libdir: li= bressl
- con= figuressllib: "--with-openssl-engine=3Dno"

runs-on: ${{matrix.os}}
- name: "${{matrix.os}} - ${{matrix.libdir}} - ${= {matrix.build}}"
+ name: "${{matrix.os}} - ${{matrix.ssllib}} - ${{matrix.build}}&q= uot;
env:
CFLAGS: ${{ matrix.cf= lags }}
LDFLAGS: ${{ matrix.ldflags }}
- OPENSSL_CFLAGS: "-I${{ma= trix.homebrew}}/${{matrix.libdir}}/include"

- OPENSSL_LIBS: "-L${{matrix.homebrew}}= /${{matrix.libdir}}/lib -lcrypto -lssl"
- LZO_CFLAGS: "-I${{matrix.homebrew}}/lzo/i= nclude"
- LZO= _LIBS: "-L${{matrix.homebrew}}/lzo/lib -llzo2"
= UBSAN_OPTIONS: print_stacktrace=3D1
steps:=
- name: Install dependencies
- run: brew install openssl@...2560... openss= l@...1554... lzo lz4 man2html cmocka libtool automake autoconf libressl
+ run: brew insta= ll ${{matrix.ssllib}} lzo lz4 man2html cmocka libtool automake autoconf
- name: Checkout OpenVPN
uses:= actions/checkout@...2691...
+ - name: Set environment
+ run: |
+ cat >>$GITHUB_ENV <<EOF;
+ OPENSSL_CFLAGS=3D-I$(bre= w --prefix ${{matrix.ssllib}})/include

+ OPENSSL_LIBS=3D-L$(brew --prefix ${{matrix.ssl= lib}})/lib -lcrypto -lssl
+ LZO_CFLAGS=3D-I$(brew --prefix lzo)/include
+ LZO_LIBS=3D-L$(brew --pre= fix lzo)/lib -llzo2

+= EOF
- name: autoconf
= run: autoreconf -fvi
- name: configure- run: ./configure --enab= le-werror ${{matrix.configureflags}} ${{matrix.configuressllib}}
= + run: ./configure --ena= ble-werror ${{matrix.configureflags}}
- name: make a= ll
run: make -j4
- name: ma= ke check

To view, visit change 782. To unsub= scribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: Ie922ce67685228eb7043749a7f1= a61a33be678d2
Gerrit-Change-Number: 782
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: cron2 <gert@...1296...>=
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-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: cron2 <gert@...1296...>= ;
Gerrit-Attention: uddr <yura.uddr@...277...= >
Gerrit-MessageType: newchange
--wFHt2kqzboE=--