From b37b7f3659e5e3d8f1d8afafa68a4459b2c119ba Mon Sep 17 00:00:00 2001 From: Moritz Birghan <32091959+mbirghan@users.noreply.github.com> Date: Wed, 16 Mar 2022 08:20:41 +0100 Subject: [PATCH] Update gh ios ci (#3018) * Remove qt5 from xcode cloud * use /opt * add outputs * try usign aqt * add python to path * look at qt version * add clang_64 o path * install clang_64 * instatll macos * fix path * remove unnecccessary lines * use aqt instead of the static repo * add paths * fix paths --- .github/workflows/ios-build.yaml | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ios-build.yaml b/.github/workflows/ios-build.yaml index becfa9d16d..96a8505f52 100644 --- a/.github/workflows/ios-build.yaml +++ b/.github/workflows/ios-build.yaml @@ -33,17 +33,10 @@ jobs: - name: Install Qt6 shell: bash run: | - auth_header="$(git config --local --get http.https://github.com/.extraheader)" - git clone https://github.com/mozilla-mobile/qt_ios - cd qt_ios - cat qt6* > qt_static_ios.tar.gz - tar xf qt_static_ios.tar.gz - sudo mkdir /opt/6.2.3 - sudo mv ios /opt/6.2.3 - if [ -d macos ]; then - sudo mv macos /opt/6.2.3 - fi - cd .. + pip3 install aqtinstall + aqt install-qt -O `pwd`/qt_ios mac desktop 6.2.3 -m qtcharts qtwebsockets qt5compat + aqt install-qt -O `pwd`/qt_ios mac ios 6.2.3 -m qtcharts qtwebsockets qt5compat + mv `pwd`/qt_ios/6.2.3/macos `pwd`/qt_ios/6.2.3/clang_64 - name: Generating glean samples shell: bash @@ -54,9 +47,8 @@ jobs: - name: Importing translation files shell: bash run: | - export PATH=/opt/6.2.3/macos/bin:$PATH - export PATH=/opt/6.2.3/ios/bin:$PATH - echo "$PATH" + export PATH=`pwd`/qt_ios/6.2.3/clang_64/bin:$PATH + export PATH=`pwd`/qt_ios/6.2.3/ios/bin:$PATH git submodule update --remote --depth 1 i18n python3 scripts/utils/import_languages.py -m @@ -70,9 +62,9 @@ jobs: - name: Configuring the build shell: bash run: | - export PATH=/opt/6.2.3/macos/bin:$PATH - export PATH=/opt/6.2.3/ios/bin:$PATH - export QT_IOS_BIN=/opt/6.2.3/ios/bin + export PATH=`pwd`/qt_ios/6.2.3/clang_64/bin:$PATH + export PATH=`pwd`/qt_ios/6.2.3/ios/bin:$PATH + export QT_IOS_BIN=`pwd`/qt_ios/6.2.3/ios/bin SHORTVERSION=$(cat version.pri | grep VERSION | grep defined | cut -d= -f2 | tr -d \ ) FULLVERSION=$(echo $SHORTVERSION | cut -d. -f1).$(date +"%Y%m%d%H%M") cat > xcode.xconfig << EOF