CI: Cleanup & updates (#4921)

* simplify ci after 64bit only

* hint on macos 10.15 with qt6.2

* Update desktop-build.yml

* Update desktop-build.yml

* update xcode

* 14.3 finds 14.3.1, but 14.0 doesn't find 14.0.1

* Update desktop-build.yml
This commit is contained in:
tooomm 2023-10-28 20:36:50 +02:00 committed by GitHub
parent 7b3617a273
commit d4fc1be2cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -209,7 +209,7 @@ jobs:
- target: 10.15_Catalina - target: 10.15_Catalina
os: macos-11 os: macos-11
xcode: 11.7 # allows using macOS 10.15 SDK xcode: 11.7 # allows using macOS 10.15 SDK
qt_version: 6.2.* # LTS (is compatible with 10.14 and 10.15) qt_version: 6.2.* # 6.2 is last LTS compatible with 10.15, see https://doc.qt.io/qt-6.5/macos.html
qt_modules: "qtmultimedia qtwebsockets" qt_modules: "qtmultimedia qtwebsockets"
type: Release type: Release
do_tests: 1 do_tests: 1
@ -218,7 +218,7 @@ jobs:
- target: 12_Monterey - target: 12_Monterey
os: macos-12 os: macos-12
xcode: 13.3 xcode: 14.0.1
qt_version: homebrew qt_version: homebrew
type: Release type: Release
do_tests: 1 do_tests: 1
@ -226,7 +226,7 @@ jobs:
- target: 13_Ventura - target: 13_Ventura
os: macos-13 os: macos-13
xcode: 14.3.1 xcode: 14.3
qt_version: homebrew qt_version: homebrew
type: Release type: Release
do_tests: 1 do_tests: 1
@ -309,24 +309,18 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
include: include:
- target: Win7+-64bit - target: 7
bit: 64
arch: x64
cmake_generator_platform: x64
qt_version: 5.15.* qt_version: 5.15.*
qt_arch: msvc2019_64 qt_arch: msvc2019_64
qt_tools: "tools_opensslv3_x64" qt_tools: "tools_opensslv3_x64"
- target: Win10+-64bit - target: 10
bit: 64 qt_version: 6.5.*
arch: x64
cmake_generator_platform: x64
qt_version: 6.3.*
qt_arch: msvc2019_64 qt_arch: msvc2019_64
qt_tools: "tools_opensslv3_x64" qt_tools: "tools_opensslv3_x64"
qt_modules: "qtmultimedia qtwebsockets" qt_modules: "qtmultimedia qtwebsockets"
name: ${{matrix.target}} name: Windows ${{matrix.target}}
needs: configure needs: configure
runs-on: windows-2019 runs-on: windows-2019
env: env:
@ -342,13 +336,13 @@ jobs:
with: with:
submodules: recursive submodules: recursive
- name: Install Qt ${{matrix.qt_version}} for ${{matrix.target}} - name: Install Qt ${{matrix.qt_version}}
uses: jurplel/install-qt-action@v3 uses: jurplel/install-qt-action@v3
with: with:
cache: true cache: true
setup-python: false setup-python: false
version: ${{matrix.qt_version}} version: ${{matrix.qt_version}}
arch: win${{matrix.bit}}_${{matrix.qt_arch}} arch: win64_${{matrix.qt_arch}}
tools: ${{matrix.qt_tools}} tools: ${{matrix.qt_tools}}
modules: ${{matrix.qt_modules}} modules: ${{matrix.qt_modules}}
@ -358,23 +352,23 @@ jobs:
runVcpkgInstall: true runVcpkgInstall: true
doNotCache: false doNotCache: false
env: env:
VCPKG_DEFAULT_TRIPLET: '${{matrix.arch}}-windows' VCPKG_DEFAULT_TRIPLET: 'x64-windows'
VCPKG_DISABLE_METRICS: 1 VCPKG_DISABLE_METRICS: 1
- name: Build Cockatrice - name: Build Cockatrice
id: build id: build
shell: bash shell: bash
env: env:
PACKAGE_SUFFIX: '-${{matrix.target}}' PACKAGE_SUFFIX: '-Win${{matrix.target}}'
CMAKE_GENERATOR: '${{env.CMAKE_GENERATOR}}' CMAKE_GENERATOR: '${{env.CMAKE_GENERATOR}}'
CMAKE_GENERATOR_PLATFORM: '${{matrix.cmake_generator_platform}}' CMAKE_GENERATOR_PLATFORM: 'x64'
QTDIR: '${{github.workspace}}\Qt\${{matrix.qt_version}}\win${{matrix.bit}}_${{matrix.qt_arch}}' QTDIR: '${{github.workspace}}\Qt\${{matrix.qt_version}}\win64_${{matrix.qt_arch}}'
run: .ci/compile.sh --server --release --test --package --parallel 2 run: .ci/compile.sh --server --release --test --package --parallel 2
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: ${{matrix.target}}-installer name: Windows${{matrix.target}}-installer
path: ${{steps.build.outputs.path}} path: ${{steps.build.outputs.path}}
if-no-files-found: error if-no-files-found: error