Next round #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Compile on Windows | |
on: | |
push: | |
branches: [ feature/actions ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
cache: 'true' | |
modules: 'qtlocation qtpositioning' | |
version: '6.*.*' | |
- name: Install Additional Software | |
run: | | |
sudo apt install ninja-build | |
- name: ccache | |
uses: hendrikmuhs/[email protected] | |
with: | |
key: linux | |
- name: Compile and Install libzip | |
run: | | |
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\win64_msvc2019_64 | |
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\win64_msvc2019_64 | |
cmake --build build-maplibre-native-qt | |
cmake --install build-maplibre-native-qt | |
- name: Package | |
run: | | |
powershell Compress-Archive Qt enrouteDependencies_win64_msvc2019.zip | |
- name: Upload to developerBuilds | |
run: | | |
gh release upload --clobber developerBuilds enrouteDependencies_win64_msvc2019.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |