1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-22 07:42:37 +00:00

chore: update older macos build verification workflow to macos-12 (#6883)

* chore: update older macos build verification workflow to macos-12

Manually set Xcode to the version was used in macos-11 runner.

See:
https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md#xcode
https://github.com/actions/runner-images/blob/main/images/macos/macos-11-Readme.md#xcode

* chore: re-enable macos-12 build verification action

* chore: disable gtk and qt clients explicitly with macos build verification

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>
This commit is contained in:
Dzmitry Neviadomski 2024-06-03 23:47:51 +03:00 committed by GitHub
parent 489de60222
commit b565e076a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -330,11 +330,11 @@ jobs:
name: binaries-${{ github.job }} name: binaries-${{ github.job }}
path: pfx/**/* path: pfx/**/*
# Only verify build support on old macOS # Only verify build support on older macOS and SDK
macos-11: macos-12:
runs-on: macos-11 runs-on: macos-12
needs: [ what-to-make ] needs: [ what-to-make ]
if: false # ${{ needs.what-to-make.outputs.make-mac == 'true' }} if: ${{ needs.what-to-make.outputs.make-mac == 'true' }}
steps: steps:
- name: Show Configuration - name: Show Configuration
run: | run: |
@ -349,6 +349,9 @@ jobs:
with: with:
path: src path: src
submodules: recursive submodules: recursive
- name: Set Xcode to 13.2.1
run: |
sudo xcode-select --switch /Applications/Xcode_13.2.1.app
- name: Configure - name: Configure
run: | run: |
cmake \ cmake \
@ -358,8 +361,9 @@ jobs:
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=pfx \ -DCMAKE_INSTALL_PREFIX=pfx \
-DCMAKE_OSX_ARCHITECTURES='x86_64' \ -DCMAKE_OSX_ARCHITECTURES='x86_64' \
-DCMAKE_PREFIX_PATH=`brew --prefix`/opt/qt \ -DENABLE_GTK=OFF \
-DENABLE_MAC=${{ (needs.what-to-make.outputs.make-mac == 'true') && 'ON' || 'OFF' }} \ -DENABLE_MAC=${{ (needs.what-to-make.outputs.make-mac == 'true') && 'ON' || 'OFF' }} \
-DENABLE_QT=OFF \
-DENABLE_TESTS=OFF \ -DENABLE_TESTS=OFF \
-DENABLE_WERROR=ON \ -DENABLE_WERROR=ON \
-DRUN_CLANG_TIDY=OFF -DRUN_CLANG_TIDY=OFF
@ -608,7 +612,6 @@ jobs:
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=pfx \ -DCMAKE_INSTALL_PREFIX=pfx \
-DCMAKE_OSX_ARCHITECTURES='x86_64;arm64' \ -DCMAKE_OSX_ARCHITECTURES='x86_64;arm64' \
-DCMAKE_PREFIX_PATH=`brew --prefix`/opt/qt \
-DENABLE_CLI=${{ (needs.what-to-make.outputs.make-cli == 'true') && 'ON' || 'OFF' }} \ -DENABLE_CLI=${{ (needs.what-to-make.outputs.make-cli == 'true') && 'ON' || 'OFF' }} \
-DENABLE_DAEMON=${{ (needs.what-to-make.outputs.make-daemon == 'true') && 'ON' || 'OFF' }} \ -DENABLE_DAEMON=${{ (needs.what-to-make.outputs.make-daemon == 'true') && 'ON' || 'OFF' }} \
-DENABLE_GTK=OFF \ -DENABLE_GTK=OFF \