aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ios.yml11
-rwxr-xr-xpackaging/ios/build.sh4
2 files changed, 6 insertions, 9 deletions
diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml
index b431ab08a..2736a2e87 100644
--- a/.github/workflows/ios.yml
+++ b/.github/workflows/ios.yml
@@ -25,11 +25,8 @@ jobs:
xzcat Qt-5.14.1-ios.tar.xz | tar -x -C $HOME/Qt -f -
- name: build Subsurface-mobile for iOS
run: |
- cd packaging/ios
+ mkdir -p $HOME/build
+ cd $HOME/build
ln -s $HOME/Qt Qt
- echo "build dependencies"
- bash -x build.sh -simulator
- echo "Subsurface-mobile for iOS"
- cd build-Subsurface-mobile-*for_iOS-Release
- sed -i.bak 's/-Wall/-Wno-everything/' Makefile # make the build far less verbose
- make -j2
+ echo "build for simulator"
+ bash -x $GITHUB_WORKSPACE/packaging/ios/build.sh -simulator
diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh
index 55e5e8aac..bd0897c05 100755
--- a/packaging/ios/build.sh
+++ b/packaging/ios/build.sh
@@ -275,9 +275,9 @@ fi
pushd "$SUBSURFACE_SOURCE"/translations
SRCS=$(ls ./*.ts | grep -v source)
popd
-mkdir -p build-ios/translations
+mkdir -p "$SUBSURFACE_SOURCE"/packaging/ios/build-ios/translations
for src in $SRCS; do
- "$IOS_QT"/"$QT_VERSION"/ios/bin/lrelease "$SUBSURFACE_SOURCE"/translations/"$src" -qm build-ios/translations/"${src/.ts/.qm}"
+ "$IOS_QT"/"$QT_VERSION"/ios/bin/lrelease "$SUBSURFACE_SOURCE"/translations/"$src" -qm "$SUBSURFACE_SOURCE"/packaging/ios/build-ios/translations/"${src/.ts/.qm}"
done
# in order to be able to use xcode without going through Qt Creator