Skip to content

Commit

Permalink
Fix checkout in Qt build script
Browse files Browse the repository at this point in the history
  • Loading branch information
adazem009 committed Feb 7, 2025
1 parent 1c22940 commit d6426ad
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .ci/build_qt6.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ echo "Target architecture: ${target_arch} (${BUILD_ARCH_NAME})"
# Clone Qt
git clone https://github.com/qt/qt5 qt || exit 1
cd qt
git checkout $(git tag | grep '^v6\.8\.[0-9]*$' | sort -V | tail -n 1) || exit 1

if [[ `grep -o '\.' <<<"$qt_version" | grep -c .` == "1" ]]; then
git checkout $(git tag | grep "^v${qt_version}.[0-9]*$" | sort -V | tail -n 1) || exit 1
else
git checkout "v${qt_version}"
fi

./init-repository --module-subset=qtbase,qttools,qtdeclarative,qtsvg${qt_modules} || exit 1

# Build Qt (host)
Expand Down

0 comments on commit d6426ad

Please sign in to comment.