Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kebekus committed Dec 6, 2023
1 parent de3016d commit af00498
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 31 deletions.
32 changes: 4 additions & 28 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,36 +31,12 @@ jobs:
- name: Install software
run: |
brew install cmake ninja
- name: Configure and compile zlib
run: |
$Qt6_DIR/bin/qt-cmake \
-G Ninja \
-S zlib \
-B build-zlib-ios \
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" \
-DCMAKE_INSTALL_PREFIX=ios
cmake --build build-zlib-ios
cmake --install build-zlib-ios
cp -rv ios/* $Qt6_DIR
- name: Configure and compile libzip
run: |
$Qt6_DIR/bin/qt-cmake \
-G Ninja \
-S libzip \
-B build-libzip-ios \
-DBUILD_DOC=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_REGRESS=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TOOLS=OFF \
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" \
-DCMAKE_PREFIX_PATH=ios \
-DCMAKE_INSTALL_PREFIX=ios
cmake --build build-libzip-ios
cmake --install build-libzip-ios
- name: Compile and Install
run: |
Qt6_DIR_BASE=$(dirname "$Qt6_DIR") ./buildscript-linux.sh
- name: Package
run: |
tar cvfz enrouteDependencies_ios.tar.gz ios
tar cvfz enrouteDependencies_ios.tar.gz Qt
- name: Upload to developerBuilds
run: |
gh release upload --clobber developerBuilds *.tar.gz
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "zlib"]
path = zlib
url = https://github.com/madler/zlib.git
[submodule "bzip2"]
path = bzip2
url = https://gitlab.com/bzip2/bzip2.git
20 changes: 20 additions & 0 deletions buildscript-android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,26 @@ set -e

for PLATFORM in android_armv7 android_arm64_v8a android_x86 android_x86_64
do
echo
echo "libzip - static for arm64 and x86_64 on iOS"

$Qt6_DIR_BASE/$PLATFORM/bin/qt-cmake \
-G Ninja \
-S libzip \
-B build-libzip-$PLATFORM \
-DBUILD_DOC=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_REGRESS=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TOOLS=OFF \
-DENABLE_BZIP2=OFF \
-DENABLE_LZMA=OFF \
-DENABLE_ZSTD=OFF \
-DCMAKE_INSTALL_PREFIX=$Qt6_DIR_BASE/$PLATFORM
cmake --build build-libzip-$PLATFORM
cmake --install build-libzip-$PLATFORM


echo
echo "Android ARMv7"

Expand Down
29 changes: 27 additions & 2 deletions buildscript-ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

# Fail on first error
set -e
installDir=Qt/$(basename "$Qt6_DIR_BASE")/ios


echo
echo "bzip2 - static for arm64 and x86_64 on iOS"

$Qt6_DIR_BASE/ios/bin/qt-cmake \
-G Ninja \
-S bzip2 \
-B build-bzip2-iOS \
-DENABLE_APP=OFF \
-DENABLE_DOCS=OFF \
-DENABLE_SHARED_LIB=OFF \
-DENABLE_STATIC_LIB=ON \
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" \
-DCMAKE_INSTALL_PREFIX=$installDir
cmake --build build-bzip2-iOS
cmake --install build-bzip2-iOS


echo
Expand All @@ -12,10 +30,17 @@ $Qt6_DIR_BASE/ios/bin/qt-cmake \
-S zlib \
-B build-zlib-iOS \
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" \
-DCMAKE_INSTALL_PREFIX=$Qt6_DIR_BASE/ios
-DCMAKE_INSTALL_PREFIX=$installDir
cmake --build build-zlib-iOS
cmake --install build-zlib-iOS


echo
echo "copy static bzip2 and zlib to development directory, so cmake can find it"

cp -rv $installDir $Qt6_DIR_BASE


echo
echo "libzip - static for arm64 and x86_64 on iOS"

Expand All @@ -32,6 +57,6 @@ $Qt6_DIR_BASE/ios/bin/qt-cmake \
-DENABLE_LZMA=OFF \
-DENABLE_ZSTD=OFF \
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" \
-DCMAKE_INSTALL_PREFIX=$Qt6_DIR_BASE/ios
-DCMAKE_INSTALL_PREFIX=$installDir
cmake --build build-libzip-iOS
cmake --install build-libzip-iOS
1 change: 1 addition & 0 deletions bzip2
Submodule bzip2 added at 6a8690
2 changes: 1 addition & 1 deletion maplibre-native-qt
Submodule maplibre-native-qt updated 63 files
+0 −38 .clang-tidy
+1 −1 .github/actions/qt5-build/Dockerfile
+1 −1 .github/actions/qt6-build/Dockerfile
+1 −42 .github/workflows/Linux.yml
+1 −4 .github/workflows/macOS.yml
+1 −1 .pre-commit-config.yaml
+2 −37 CMakeLists.txt
+0 −65 cmake/coverage.cmake
+0 −8 cmake/helpers.cmake
+0 −13 codecov.yml
+1 −1 examples/quick/main.qml
+3 −9 src/core/CMakeLists.txt
+40 −58 src/core/conversion_p.hpp
+13 −16 src/core/geojson.cpp
+129 −156 src/core/map.cpp
+25 −29 src/core/map.hpp
+10 −12 src/core/map_observer.cpp
+9 −9 src/core/map_observer_p.hpp
+6 −8 src/core/map_p.hpp
+10 −10 src/core/map_renderer.cpp
+3 −3 src/core/map_renderer_p.hpp
+3 −3 src/core/renderer_backend.cpp
+3 −3 src/core/renderer_backend_p.hpp
+2 −2 src/core/renderer_observer_p.hpp
+4 −6 src/core/scheduler.cpp
+2 −2 src/core/scheduler_p.hpp
+59 −160 src/core/settings.cpp
+49 −52 src/core/settings.hpp
+0 −57 src/core/settings_p.hpp
+30 −60 src/core/types.hpp
+2 −2 src/core/utils.cpp
+3 −3 src/core/utils.hpp
+0 −6 src/location/CMakeLists.txt
+0 −12 src/location/plugins/CMakeLists.txt
+1 −2 src/location/plugins/qgeoserviceproviderplugin.cpp
+7 −7 src/location/plugins/qml_types.hpp
+39 −45 src/location/qgeomap.cpp
+3 −3 src/location/qgeomap.hpp
+3 −3 src/location/qgeomap_p.hpp
+32 −131 src/location/qt_mapping_engine.cpp
+38 −48 src/location/stylechange.cpp
+4 −4 src/location/stylechange_p.h
+8 −8 src/location/texture_node.cpp
+1 −1 src/location/texture_node.hpp
+2 −8 src/widgets/CMakeLists.txt
+17 −26 src/widgets/gl_widget.cpp
+2 −2 src/widgets/gl_widget.hpp
+3 −3 src/widgets/gl_widget_p.hpp
+0 −7 test/.clang-tidy
+0 −4 test/core/CMakeLists.txt
+0 −1 test/core/map_tester.cpp
+5 −6 test/core/test_core.cpp
+0 −4 test/qml/CMakeLists.txt
+3 −7 test/qml/qt5/tst_map.qml
+0 −77 test/qml/qt5/tst_plugin_style.qml
+3 −7 test/qml/qt6/tst_map.qml
+0 −37 test/qml/qt6/tst_plugin_no_parameters.qml
+0 −42 test/qml/qt6/tst_plugin_provider.qml
+0 −77 test/qml/qt6/tst_plugin_style.qml
+0 −4 test/widgets/CMakeLists.txt
+8 −9 test/widgets/gl_tester.cpp
+3 −5 test/widgets/gl_tester.hpp
+4 −41 test/widgets/test_widgets.cpp

0 comments on commit af00498

Please sign in to comment.