Skip to content

Commit

Permalink
ci: make commands for Qt install to reduce repetition
Browse files Browse the repository at this point in the history
Signed-off-by: Jared Van Bortel <[email protected]>
  • Loading branch information
cebtenzzre committed Sep 20, 2024
1 parent b1de683 commit b5e7aff
Showing 1 changed file with 48 additions and 54 deletions.
102 changes: 48 additions & 54 deletions .circleci/continue_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,45 @@ parameters:
type: boolean
default: false

commands:
install_qt_macos:
steps:
- run:
name: Installing Qt
command: |
curl -OL https://qt.mirror.constant.com/archive/online_installers/4.8/qt-online-installer-macOS-x64-4.8.0.dmg
hdiutil attach qt-online-installer-macOS-x64-4.8.0.dmg
/Volumes/qt-online-installer-macOS-x64-4.8.0/qt-online-installer-macOS-x64-4.8.0.app/Contents/MacOS/qt-online-installer-macOS-x64-4.8.0 \
--no-force-installations --no-default-installations --no-size-checking --default-answer \
--accept-licenses --confirm-command --accept-obligations --email $QT_EMAIL --password $QT_PASSWORD \
install qt.tools.cmake qt.tools.ifw.48 qt.tools.ninja qt.qt6.672.clang_64 qt.qt6.672.qt5compat \
qt.qt6.672.debug_info qt.qt6.672.addons.qtpdf qt.qt6.672.addons.qthttpserver
hdiutil detach /Volumes/qt-online-installer-macOS-x64-4.8.0
install_qt_linux:
steps:
- run:
name: Installing Qt
command: |
curl -OL https://qt.mirror.constant.com/archive/online_installers/4.8/qt-online-installer-linux-x64-4.8.0.run
chmod +x qt-online-installer-linux-x64-4.8.0.run
./qt-online-installer-linux-x64-4.8.0.run --no-force-installations --no-default-installations \
--no-size-checking --default-answer --accept-licenses --confirm-command --accept-obligations \
--email $QT_EMAIL --password $QT_PASSWORD \
install qt.tools.cmake qt.tools.ifw.48 qt.tools.ninja qt.qt6.672.gcc_64 qt.qt6.672.qt5compat \
qt.qt6.672.debug_info qt.qt6.672.addons.qtpdf qt.qt6.672.addons.qthttpserver
install_qt_windows:
steps:
- run:
name: Installing Qt
command: |
Invoke-WebRequest -Uri https://qt.mirror.constant.com/archive/online_installers/4.8/qt-online-installer-windows-x64-4.8.0.exe ^
-OutFile qt-online-installer-windows-x64-4.8.0.exe
& .\qt-online-installer-windows-x64-4.8.0.exe --no-force-installations --no-default-installations ^
--no-size-checking --default-answer --accept-licenses --confirm-command --accept-obligations ^
--email ${Env:QT_EMAIL} --password ${Env:QT_PASSWORD} ^
install qt.tools.cmake qt.tools.ifw.48 qt.tools.ninja qt.qt6.672.win64_msvc2019_64 qt.qt6.672.qt5compat ^
qt.qt6.672.debug_info qt.qt6.672.addons.qtpdf qt.qt6.672.addons.qthttpserver
jobs:
build-offline-chat-installer-macos:
macos:
Expand All @@ -38,13 +77,7 @@ jobs:
- run:
name: Install dependencies
command: brew install ccache
- run:
name: Installing Qt
command: |
curl -OL https://qt.mirror.constant.com/archive/online_installers/4.8/qt-online-installer-macOS-x64-4.8.0.dmg
hdiutil attach qt-online-installer-macOS-x64-4.8.0.dmg
/Volumes/qt-online-installer-macOS-x64-4.8.0/qt-online-installer-macOS-x64-4.8.0.app/Contents/MacOS/qt-online-installer-macOS-x64-4.8.0 --no-force-installations --no-default-installations --no-size-checking --default-answer --accept-licenses --confirm-command --accept-obligations --email $QT_EMAIL --password $QT_PASSWORD install qt.tools.cmake qt.tools.ifw.48 qt.tools.ninja qt.qt6.672.clang_64 qt.qt6.672.qt5compat qt.qt6.672.debug_info qt.qt6.672.addons.qtpdf qt.qt6.672.addons.qthttpserver
hdiutil detach /Volumes/qt-online-installer-macOS-x64-4.8.0
- install_qt_macos
- run:
name: Setup Keychain
command: |
Expand Down Expand Up @@ -176,13 +209,7 @@ jobs:
- run:
name: Install dependencies
command: brew install ccache
- run:
name: Installing Qt
command: |
curl -o qt-online-installer-macOS-x64-4.8.0.dmg https://gpt4all.io/ci/qt-online-installer-macOS-x64-4.8.0.dmg
hdiutil attach qt-online-installer-macOS-x64-4.8.0.dmg
/Volumes/qt-online-installer-macOS-x64-4.8.0/qt-online-installer-macOS-x64-4.8.0.app/Contents/MacOS/qt-online-installer-macOS-x64-4.8.0 --no-force-installations --no-default-installations --no-size-checking --default-answer --accept-licenses --confirm-command --accept-obligations --email $QT_EMAIL --password $QT_PASSWORD install qt.tools.cmake qt.tools.ifw.48 qt.tools.ninja qt.qt6.672.clang_64 qt.qt6.672.qt5compat qt.qt6.672.debug_info qt.qt6.672.addons.qtpdf qt.qt6.672.addons.qthttpserver
hdiutil detach /Volumes/qt-online-installer-macOS-x64-4.8.0
- install_qt_macos
- run:
name: Setup Keychain
command: |
Expand Down Expand Up @@ -326,12 +353,7 @@ jobs:
)
sudo apt-get update
sudo apt-get install -y "${packages[@]}"
- run:
name: Installing Qt
command: |
curl -OL https://qt.mirror.constant.com/archive/online_installers/4.8/qt-online-installer-linux-x64-4.8.0.run
chmod +x qt-online-installer-linux-x64-4.8.0.run
./qt-online-installer-linux-x64-4.8.0.run --no-force-installations --no-default-installations --no-size-checking --default-answer --accept-licenses --confirm-command --accept-obligations --email $QT_EMAIL --password $QT_PASSWORD install qt.tools.cmake qt.tools.ifw.48 qt.tools.ninja qt.qt6.672.gcc_64 qt.qt6.672.qt5compat qt.qt6.672.debug_info qt.qt6.672.addons.qtpdf qt.qt6.672.addons.qthttpserver
- install_qt_linux
- run:
name: Build linuxdeployqt
command: |
Expand Down Expand Up @@ -402,12 +424,7 @@ jobs:
)
sudo apt-get update
sudo apt-get install -y "${packages[@]}"
- run:
name: Installing Qt
command: |
curl -OL https://qt.mirror.constant.com/archive/online_installers/4.8/qt-online-installer-linux-x64-4.8.0.run
chmod +x qt-online-installer-linux-x64-4.8.0.run
./qt-online-installer-linux-x64-4.8.0.run --no-force-installations --no-default-installations --no-size-checking --default-answer --accept-licenses --confirm-command --accept-obligations --email $QT_EMAIL --password $QT_PASSWORD install qt.tools.cmake qt.tools.ifw.48 qt.tools.ninja qt.qt6.672.gcc_64 qt.qt6.672.qt5compat qt.qt6.672.debug_info qt.qt6.672.addons.qtpdf qt.qt6.672.addons.qthttpserver
- install_qt_linux
- run:
name: Build linuxdeployqt
command: |
Expand Down Expand Up @@ -467,11 +484,7 @@ jobs:
- run:
name: Install dependencies
command: choco install -y ccache
- run:
name: Installing Qt
command: |
Invoke-WebRequest -Uri https://qt.mirror.constant.com/archive/online_installers/4.8/qt-online-installer-windows-x64-4.8.0.exe -OutFile qt-online-installer-windows-x64-4.8.0.exe
& .\qt-online-installer-windows-x64-4.8.0.exe --no-force-installations --no-default-installations --no-size-checking --default-answer --accept-licenses --confirm-command --accept-obligations --email ${Env:QT_EMAIL} --password ${Env:QT_PASSWORD} install qt.tools.cmake qt.tools.ifw.48 qt.tools.ninja qt.qt6.672.win64_msvc2019_64 qt.qt6.672.qt5compat qt.qt6.672.debug_info qt.qt6.672.addons.qtpdf qt.qt6.672.addons.qthttpserver
- install_qt_windows
- run:
name: Install VulkanSDK
command: |
Expand Down Expand Up @@ -588,11 +601,7 @@ jobs:
- run:
name: Install dependencies
command: choco install -y ccache
- run:
name: Installing Qt
command: |
Invoke-WebRequest -Uri https://qt.mirror.constant.com/archive/online_installers/4.8/qt-online-installer-windows-x64-4.8.0.exe -OutFile qt-online-installer-windows-x64-4.8.0.exe
& .\qt-online-installer-windows-x64-4.8.0.exe --no-force-installations --no-default-installations --no-size-checking --default-answer --accept-licenses --confirm-command --accept-obligations --email ${Env:QT_EMAIL} --password ${Env:QT_PASSWORD} install qt.tools.cmake qt.tools.ifw.48 qt.tools.ninja qt.qt6.672.win64_msvc2019_64 qt.qt6.672.qt5compat qt.qt6.672.debug_info qt.qt6.672.addons.qtpdf qt.qt6.672.addons.qthttpserver
- install_qt_windows
- run:
name: Install VulkanSDK
command: |
Expand Down Expand Up @@ -733,12 +742,7 @@ jobs:
)
sudo apt-get update
sudo apt-get install -y "${packages[@]}"
- run:
name: Installing Qt
command: |
curl -OL https://qt.mirror.constant.com/archive/online_installers/4.8/qt-online-installer-linux-x64-4.8.0.run
chmod +x qt-online-installer-linux-x64-4.8.0.run
./qt-online-installer-linux-x64-4.8.0.run --no-force-installations --no-default-installations --no-size-checking --default-answer --accept-licenses --confirm-command --accept-obligations --email $QT_EMAIL --password $QT_PASSWORD install qt.tools.cmake qt.tools.ifw.48 qt.tools.ninja qt.qt6.672.gcc_64 qt.qt6.672.qt5compat qt.qt6.672.debug_info qt.qt6.672.addons.qtpdf qt.qt6.672.addons.qthttpserver
- install_qt_linux
- run:
name: Build
command: |
Expand Down Expand Up @@ -780,11 +784,7 @@ jobs:
- run:
name: Install dependencies
command: choco install -y ccache
- run:
name: Installing Qt
command: |
Invoke-WebRequest -Uri https://qt.mirror.constant.com/archive/online_installers/4.8/qt-online-installer-windows-x64-4.8.0.exe -OutFile qt-online-installer-windows-x64-4.8.0.exe
& .\qt-online-installer-windows-x64-4.8.0.exe --no-force-installations --no-default-installations --no-size-checking --default-answer --accept-licenses --confirm-command --accept-obligations --email ${Env:QT_EMAIL} --password ${Env:QT_PASSWORD} install qt.tools.cmake qt.tools.ifw.48 qt.tools.ninja qt.qt6.672.win64_msvc2019_64 qt.qt6.672.qt5compat qt.qt6.672.debug_info qt.qt6.672.addons.qtpdf qt.qt6.672.addons.qthttpserver
- install_qt_windows
- run:
name: Install VulkanSDK
command: |
Expand Down Expand Up @@ -841,13 +841,7 @@ jobs:
- run:
name: Install dependencies
command: brew install ccache
- run:
name: Installing Qt
command: |
curl -o qt-online-installer-macOS-x64-4.8.0.dmg https://gpt4all.io/ci/qt-online-installer-macOS-x64-4.8.0.dmg
hdiutil attach qt-online-installer-macOS-x64-4.8.0.dmg
/Volumes/qt-online-installer-macOS-x64-4.8.0/qt-online-installer-macOS-x64-4.8.0.app/Contents/MacOS/qt-online-installer-macOS-x64-4.8.0 --no-force-installations --no-default-installations --no-size-checking --default-answer --accept-licenses --confirm-command --accept-obligations --email $QT_EMAIL --password $QT_PASSWORD install qt.tools.cmake qt.tools.ifw.48 qt.tools.ninja qt.qt6.672.clang_64 qt.qt6.672.qt5compat qt.qt6.672.debug_info qt.qt6.672.addons.qtpdf qt.qt6.672.addons.qthttpserver
hdiutil detach /Volumes/qt-online-installer-macOS-x64-4.8.0
- install_qt_macos
- run:
name: Build
command: |
Expand Down

0 comments on commit b5e7aff

Please sign in to comment.