summary refs log tree commit diff
path: root/.ci/macos/build.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-x.ci/macos/build.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/.ci/macos/build.sh b/.ci/macos/build.sh
index efc183e8..e4978231 100755
--- a/.ci/macos/build.sh
+++ b/.ci/macos/build.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/usr/bin/env bash
 
 set -ue
 
@@ -6,10 +6,11 @@ set -ue
 #TAG=$(git tag -l --points-at HEAD)
 
 # Add Qt binaries to path
-PATH="${HOME}/Qt/6.5.1/macos/bin/:${PATH}"
+QT_BASEPATH=(${HOME}/Qt/6.*/macos/)
+PATH="${QT_BASEPATH}/bin/:${PATH}"
 export PATH
 
-CMAKE_PREFIX_PATH="${HOME}/Qt/6.5.1/macos/lib/cmake"
+CMAKE_PREFIX_PATH="${QT_BASEPATH}/lib/cmake"
 export CMAKE_PREFIX_PATH
 
 cmake -GNinja -S. -Bbuild \
@@ -19,7 +20,7 @@ cmake -GNinja -S. -Bbuild \
       -DHUNTER_ENABLED=ON -DBUILD_SHARED_LIBS=OFF \
       -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHUNTER_CONFIGURATION_TYPES=RelWithDebInfo \
       -DUSE_BUNDLED_OPENSSL=ON \
-      -DQt6_DIR=${HOME}/Qt/6.5.1/macos/lib/cmake \
+      -DQt6_DIR=${QT_BASEPATH}/lib/cmake \
       -DCI_BUILD=ON
 cmake --build build
 cmake --install build