Skip to content

Commit

Permalink
Next round
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kebekus committed Dec 7, 2023
1 parent 1822638 commit a2c6859
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 37 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,33 +32,6 @@ jobs:
target: 'android'
version: '6.*.*'
arch: 'android_arm64_v8a'
- name: Install Qt for Android armv7
uses: jurplel/install-qt-action@v3
with:
cache: 'true'
cache-key-prefix: 'install-qt-action-android'
modules: 'qtlocation qtpositioning'
target: 'android'
version: '6.*.*'
arch: 'android_armv7'
- name: Install Qt for Android x86
uses: jurplel/install-qt-action@v3
with:
cache: 'true'
cache-key-prefix: 'install-qt-action-android'
modules: 'qtlocation qtpositioning'
target: 'android'
version: '6.*.*'
arch: 'android_x86'
- name: Install Qt for Android x86_64
uses: jurplel/install-qt-action@v3
with:
cache: 'true'
cache-key-prefix: 'install-qt-action-android'
modules: 'qtlocation qtpositioning'
target: 'android'
version: '6.*.*'
arch: 'android_x86_64'
- name: Install Additional Software
run: |
sudo apt install ninja-build
Expand All @@ -72,12 +45,39 @@ jobs:
uses: hendrikmuhs/[email protected]
with:
key: android
- name: Compile and Install
- name: Compile and Install libzip
run: |
$Qt6_DIR/bin/qt-cmake \
-G Ninja \
-S libzip \
-B build-libzip \
-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=Qt
cmake --build build-libzip
cmake --install build-libzip
- name: Compile and Install maplibre-native-qt
run: |
Qt6_DIR_BASE=$(dirname "$Qt6_DIR") ./buildscript-android.sh
$Qt6_DIR/bin/qt-cmake \
-S maplibre-native-qt \
-B build-maplibre-native-qt \
-G Ninja \
-DBUILD_TESTING=OFF \
-DCMAKE_C_COMPILER_LAUNCHER="ccache" \
-DCMAKE_CXX_COMPILER_LAUNCHER="ccache" \
-DCMAKE_PREFIX_PATH=$Qt6_DIR \
-DCMAKE_INSTALL_PREFIX=Qt
cmake --build build-maplibre-native-qt
cmake --install build-maplibre-native-qt
- name: Package
run: |
tar cvfz enrouteDependencies_android.tar.gz Qt
tar cvfz enrouteDependencies_android_arm64.tar.gz Qt
- name: Upload to developerBuilds
run: |
gh release upload --clobber developerBuilds *.tar.gz
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Compile on ios
name: Compile on iOS

on:
push:
Expand All @@ -19,7 +19,7 @@ jobs:
with:
cache: 'true'
cache-key-prefix: 'install-qt-action-macOS-host'
version: '6.5.2'
version: '6.*.*'
- name: Set QT_HOST_PATH
run: |
echo QT_HOST_PATH=$Qt6_DIR >> $GITHUB_ENV
Expand All @@ -29,7 +29,7 @@ jobs:
cache: 'true'
cache-key-prefix: 'install-qt-action-ios'
target: 'ios'
version: '6.5.2'
version: '6.*.*'
- name: Install software
run: |
brew install ninja
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Compile on macOS

on:
push:
branches: [ feature/actions ]
branches: [ main ]

jobs:
build:
Expand Down
33 changes: 30 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Compile on Windows

on:
push:
branches: [ main ]
branches: [ feature/actions ]

jobs:
build:
Expand All @@ -27,9 +27,36 @@ jobs:
uses: hendrikmuhs/[email protected]
with:
key: linux
- name: Compile and Install
- name: Compile and Install libzip
run: |
Qt6_DIR_BASE=$(dirname "$Qt6_DIR") ./buildscript-windows.bat
qt-cmake \
-G Ninja \
-S libzip \
-B build-libzip \
-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=Qt
cmake --build build-libzip
cmake --install build-libzip
- name: Compile and Install maplibre-native-qt
run: |
qt-cmake \
-S maplibre-native-qt \
-B build-maplibre-native-qt \
-G Ninja \
-DBUILD_TESTING=OFF \
-DCMAKE_C_COMPILER_LAUNCHER="ccache" \
-DCMAKE_CXX_COMPILER_LAUNCHER="ccache" \
-DCMAKE_PREFIX_PATH=$Qt6_DIR \
-DCMAKE_INSTALL_PREFIX=Qt
cmake --build build-maplibre-native-qt
cmake --install build-maplibre-native-qt
- name: Package
run: |
powershell Compress-Archive Qt enrouteDependencies_windows64.zip
Expand Down

0 comments on commit a2c6859

Please sign in to comment.