From: Gert Doering Date: Tue, 15 Oct 2024 22:56:43 +0200 Message-ID: <20241015205643.25779-1-gert@...1296...> In-Reply-To: References: MIME-Version: 1.0 Subject: [Openvpn-devel] [PATCH v1] GHA: Simplify macOS builds List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: openvpn-devel@lists.sourceforge.net From: Frank Lichtenheld Reduce redundant configuration. Change-Id: Ie922ce67685228eb7043749a7f1a61a33be678d2 Signed-off-by: Frank Lichtenheld Acked-by: Arne Schwabe Acked-by: Yuriy Darnobyt --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master. Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/781 This mail reflects revision 1 of this Change. Acked-by according to Gerrit (reflected above): Arne Schwabe Yuriy Darnobyt 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=address,undefined -fno-sanitize-recover=all -fno-optimize-sibling-calls -fsanitize-address-use-after-scope -fno-omit-frame-pointer -g -O1" ldflags: -fsanitize=address,undefined -fno-sanitize-recover=all @@ -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=no" 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 -lcrypto -lssl" - LZO_CFLAGS: "-I${{matrix.homebrew}}/lzo/include" - LZO_LIBS: "-L${{matrix.homebrew}}/lzo/lib -llzo2" UBSAN_OPTIONS: print_stacktrace=1 steps: - name: Install dependencies - run: brew install openssl@...2560... openssl@...1554... lzo lz4 man2html cmocka libtool automake autoconf libressl + run: brew install ${{matrix.ssllib}} lzo lz4 man2html cmocka libtool automake autoconf - name: Checkout OpenVPN uses: actions/checkout@...2813... # v4 + - name: Set environment + run: | + cat >>$GITHUB_ENV <