From 29173741592ed33df315c5b10203a49cf2544f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C5=93ur?= Date: Tue, 26 Mar 2024 09:46:11 +0800 Subject: [PATCH] add macos-11 to actions.yml (#6617) --- .github/workflows/actions.yml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index c1ca3bf12..740975f10 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -330,6 +330,42 @@ jobs: name: binaries-${{ github.job }} path: pfx/**/* + # Only verify build support on old macOS + macos-11: + runs-on: macos-11 + needs: [ what-to-make ] + if: ${{ needs.what-to-make.outputs.make-mac == 'true' }} + steps: + - name: Show Configuration + run: | + echo '${{ toJSON(needs) }}' + echo '${{ toJSON(runner) }}' + sw_vers + - name: Get Dependencies + run: | + brew install cmake gettext libdeflate libevent libpsl miniupnpc ninja node pkg-config + - name: Get Source + uses: actions/checkout@v4 + with: + path: src + submodules: recursive + - name: Configure + run: | + cmake \ + -S src \ + -B obj \ + -G Ninja \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_INSTALL_PREFIX=pfx \ + -DCMAKE_OSX_ARCHITECTURES='x86_64' \ + -DCMAKE_PREFIX_PATH=`brew --prefix`/opt/qt \ + -DENABLE_MAC=${{ (needs.what-to-make.outputs.make-mac == 'true') && 'ON' || 'OFF' }} \ + -DENABLE_TESTS=OFF \ + -DENABLE_WERROR=ON \ + -DRUN_CLANG_TIDY=OFF + - name: Make + run: cmake --build obj --config RelWithDebInfo + alpine-musl: needs: [ what-to-make ] runs-on: ubuntu-22.04