mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-25 00:15:11 +08:00
Provisioning: Mount Vcpkg Cache Drive on macOS
Change-Id: I3038467c98a7c2a5f3b05d7b370d9ec0ea95156d Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
28
coin/provisioning/common/macos/mount-vcpkg-cache-drive.sh
Executable file
28
coin/provisioning/common/macos/mount-vcpkg-cache-drive.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (C) 2023 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 -e
|
||||
|
||||
# Avoid leaking secrets in the logs
|
||||
set +x
|
||||
|
||||
targetDir="$HOME/vcpkg-cache"
|
||||
|
||||
# Specify the path to the credential file
|
||||
credentialFile="$HOME/samba_credentials"
|
||||
username=$(grep '^username=' "$credentialFile" | cut -d '=' -f 2)
|
||||
password=$(grep '^password=' "$credentialFile" | cut -d '=' -f 2)
|
||||
|
||||
mkdir -p "$targetDir"
|
||||
|
||||
# Mount the SMB share
|
||||
# Check if the mount was successful
|
||||
if mount -v -t smbfs -o -N "//${username}:${password}@vcpkg-server.ci.qt.io/vcpkg" "$targetDir"
|
||||
then
|
||||
echo "SMB share mounted successfully!"
|
||||
else
|
||||
echo "Failed to mount SMB share."
|
||||
fi
|
||||
|
||||
set -x
|
||||
8
coin/provisioning/qtci-macos-11-arm/01-mount-vcpkg-cache-drive.sh
Executable file
8
coin/provisioning/qtci-macos-11-arm/01-mount-vcpkg-cache-drive.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (C) 2023 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/mount-vcpkg-cache-drive.sh
|
||||
source "${BASH_SOURCE%/*}/../common/macos/mount-vcpkg-cache-drive.sh"
|
||||
8
coin/provisioning/qtci-macos-11-x86_64/01-mount-vcpkg-cache-drive.sh
Executable file
8
coin/provisioning/qtci-macos-11-x86_64/01-mount-vcpkg-cache-drive.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (C) 2023 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/mount-vcpkg-cache-drive.sh
|
||||
source "${BASH_SOURCE%/*}/../common/macos/mount-vcpkg-cache-drive.sh"
|
||||
8
coin/provisioning/qtci-macos-12-arm/01-mount-vcpkg-cache-drive.sh
Executable file
8
coin/provisioning/qtci-macos-12-arm/01-mount-vcpkg-cache-drive.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (C) 2023 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/mount-vcpkg-cache-drive.sh
|
||||
source "${BASH_SOURCE%/*}/../common/macos/mount-vcpkg-cache-drive.sh"
|
||||
8
coin/provisioning/qtci-macos-12-x86_64/01-mount-vcpkg-cache-drive.sh
Executable file
8
coin/provisioning/qtci-macos-12-x86_64/01-mount-vcpkg-cache-drive.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (C) 2023 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/mount-vcpkg-cache-drive.sh
|
||||
source "${BASH_SOURCE%/*}/../common/macos/mount-vcpkg-cache-drive.sh"
|
||||
8
coin/provisioning/qtci-macos-13-arm/01-mount-vcpkg-cache-drive.sh
Executable file
8
coin/provisioning/qtci-macos-13-arm/01-mount-vcpkg-cache-drive.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (C) 2023 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/mount-vcpkg-cache-drive.sh
|
||||
source "${BASH_SOURCE%/*}/../common/macos/mount-vcpkg-cache-drive.sh"
|
||||
8
coin/provisioning/qtci-macos-13-x86_64/01-mount-vcpkg-cache-drive.sh
Executable file
8
coin/provisioning/qtci-macos-13-x86_64/01-mount-vcpkg-cache-drive.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (C) 2023 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/mount-vcpkg-cache-drive.sh
|
||||
source "${BASH_SOURCE%/*}/../common/macos/mount-vcpkg-cache-drive.sh"
|
||||
8
coin/provisioning/qtci-macos-14-arm/01-mount-vcpkg-cache-drive.sh
Executable file
8
coin/provisioning/qtci-macos-14-arm/01-mount-vcpkg-cache-drive.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (C) 2023 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/mount-vcpkg-cache-drive.sh
|
||||
source "${BASH_SOURCE%/*}/../common/macos/mount-vcpkg-cache-drive.sh"
|
||||
8
coin/provisioning/qtci-macos-14-x86_64/01-mount-vcpkg-cache-drive.sh
Executable file
8
coin/provisioning/qtci-macos-14-x86_64/01-mount-vcpkg-cache-drive.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (C) 2023 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/mount-vcpkg-cache-drive.sh
|
||||
source "${BASH_SOURCE%/*}/../common/macos/mount-vcpkg-cache-drive.sh"
|
||||
Reference in New Issue
Block a user