From 6f3be7ab262b60fbb84532325c51b79368e815d5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 21 Aug 2021 14:41:02 +0200 Subject: [PATCH] Reduce the number of Mac CI builds and add a universal one Don't run 8 builds for all combinations of arch/debug/C++ dialect but just a few of them covering all of the possibilities. Also add a static universal build which is what is commonly used for distributing software using wxWidgets under Mac. --- .github/workflows/ci_mac_selfhosted.yml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci_mac_selfhosted.yml b/.github/workflows/ci_mac_selfhosted.yml index bb4acfca44..b2bcf10372 100644 --- a/.github/workflows/ci_mac_selfhosted.yml +++ b/.github/workflows/ci_mac_selfhosted.yml @@ -65,26 +65,24 @@ jobs: runs-on: self-hosted - name: ${{ matrix.build }}, arch ${{ matrix.arch }}, cxx${{ matrix.cxx }} + name: ${{ matrix.name }} strategy: fail-fast: false matrix: - arch: [arm64e, x86_64] - build: [debug, release] - cxx: [11, 17] include: - - build: debug - configure_flags: --without-liblzma --enable-debug --disable-sys-libs --with-osx_cocoa - - build: release - configure_flags: --without-liblzma --disable-sys-libs --with-osx_cocoa - - cxx: 17 - cxxconfig: --with-macosx-version-min=10.12 - - cxx: 11 - cxxconfig: + - name: ARM C++11 + arch: arm64 + configure_flags: --with-cxx=11 --disable-debug + - name: Intel C++17 + arch: x86_64 + configure_flags: --with-cxx=17 --with-macosx-version-min=10.12 --enable-debug + - name: Universal C++14 + arch: arm64 + configure_flags: --with-cxx=14 --enable-universal_binary=arm64,x86_64 --disable-shared --disable-debug env: - wxCONFIGURE_FLAGS: ${{ matrix.configure_flags }} ${{ matrix.cxxconfig }} --with-cxx=${{ matrix.cxx }} --prefix=${{ github.workspace }}/localbin_${{ matrix.arch }} + wxCONFIGURE_FLAGS: --disable-sys-libs --without-liblzma ${{ matrix.configure_flags }} --prefix=${{ github.workspace }}/localbin_${{ matrix.arch }} DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer NSUnbufferedIO: YES