Provisioning: Add Simulator Runtime installation to macOS

Task-number: QTQAINFRA-6774
Pick-to: 6.9 6.8
Change-Id: I2461911d20ba2fda7b2c53d38b0e688139501e22
Reviewed-by: Jukka Jokiniva <jukka.jokiniva@qt.io>
This commit is contained in:
Ville-Pekka Karhu
2024-11-21 12:43:19 +02:00
parent 93a9e3ce7a
commit 1f6f97a141
5 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#!/usr/bin/env bash
# Copyright (C) 2024 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
# shellcheck source=../unix/DownloadURL.sh
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
set -ex
function InstallSimulatorRuntime {
url=$1
url_alt=$2
expectedSha1=$3
packageName=$4
version=$5
DownloadURL "$url" "$url_alt" "$expectedSha1" "/tmp/$packageName"
echo "Installing"
# macOS 14 / Xcode 15 has a different install command
if [[ $OSTYPE == "darwin23" ]]; then
xcrun simctl runtime add "/tmp/$packageName"
else
xcodebuild -importPlatform "/tmp/$packageName"
fi
echo "Simulator Runtime = $version" >> ~/versions.txt
}

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# Copyright (C) 2024 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
set -ex
# shellcheck source=../common/macos/install-simulator-runtime.sh
source "${BASH_SOURCE%/*}/../common/macos/install-simulator-runtime.sh"
version="17.4"
packageName=iOS_"$version"_Simulator_Runtime.dmg
url="http://ci-files01-hki.ci.qt.io/input/mac/$packageName"
sha1="7b930c544403806f3a4f99bb48e80f4ef1533f50"
InstallSimulatorRuntime $url $url $sha1 $packageName $version

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# Copyright (C) 2024 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
set -ex
# shellcheck source=../common/macos/install-simulator-runtime.sh
source "${BASH_SOURCE%/*}/../common/macos/install-simulator-runtime.sh"
version="17.4"
packageName=iOS_"$version"_Simulator_Runtime.dmg
url="http://ci-files01-hki.ci.qt.io/input/mac/$packageName"
sha1="7b930c544403806f3a4f99bb48e80f4ef1533f50"
InstallSimulatorRuntime $url $url $sha1 $packageName $version

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# Copyright (C) 2024 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
set -ex
# shellcheck source=../common/macos/install-simulator-runtime.sh
source "${BASH_SOURCE%/*}/../common/macos/install-simulator-runtime.sh"
version="18.0"
packageName=iOS_"$version"_Simulator_Runtime.dmg
url="http://ci-files01-hki.ci.qt.io/input/mac/$packageName"
sha1="f29778313459b3a2a497ffd711b9dfa212241183"
InstallSimulatorRuntime $url $url $sha1 $packageName $version

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# Copyright (C) 2024 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
set -ex
# shellcheck source=../common/macos/install-simulator-runtime.sh
source "${BASH_SOURCE%/*}/../common/macos/install-simulator-runtime.sh"
version="18.0"
packageName=iOS_"$version"_Simulator_Runtime.dmg
url="http://ci-files01-hki.ci.qt.io/input/mac/$packageName"
sha1="f29778313459b3a2a497ffd711b9dfa212241183"
InstallSimulatorRuntime $url $url $sha1 $packageName $version