const correction #10284
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: MSYS2 MinGW-w64 Windows 64bit Build | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- master | |
- release-** | |
- queued_ltr_backports | |
paths: | |
- 'src/**' | |
- 'external/**' | |
- 'python/**' | |
- 'tests/**' | |
- 'ms-windows/**' | |
- 'CMakeLists.txt' | |
- '.github/workflows/mingw-w64-msys2.yml' | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
mingw-w64-msys2-build: | |
name: MSYS2 MinGW-w64 Windows Build | |
runs-on: windows-latest | |
#strategy: | |
# fail-fast: false | |
# matrix: | |
# QT_VERSION: [qt5, qt6] | |
# MSYSTEM: [UCRT64, CLANG64] | |
env: | |
CCACHE_DIR: build/ccache | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install core & build dependencies | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: UCRT64 | |
install: base-devel | |
pacboy: >- | |
draco:p exiv2:p gdal:p gsl:p hdf5:p libxml2:p libzip:p netcdf:p opencl-icd:p pdal:p | |
protobuf:p proj:p qca-qt5:p qscintilla-qt5:p qt5-3d:p qt5-base:p qt5-declarative:p | |
qt5-gamepad:p qt5-location:p qt5-serialport:p qt5-svg:p qtkeychain-qt5:p qtwebkit:p | |
qwt-qt5:p spatialindex:p cc:p cmake:p ninja:p opencl-clhpp:p qt5-tools:p python:p ccache:p | |
python-gdal:p python-owslib:p python-pyqt5:p python-qscintilla-qt5:p pyqt-builder:p sip:p | |
update: true | |
release: false | |
- name: Restore build cache | |
uses: actions/cache/restore@v4 | |
with: | |
path: build | |
key: build-ccache-mingw64-msys2-${{ github.event.pull_request.base.ref || github.ref_name }} | |
restore-keys: | | |
build-ccache-mingw64-msys2-master | |
- name: Configure QGIS | |
run: | | |
cmake \ | |
-G"Ninja" \ | |
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ | |
-DPython_EXECUTABLE=${MINGW_PREFIX}/bin/python \ | |
-DWITH_3D=ON \ | |
-DWITH_DRACO=ON \ | |
-DWITH_PDAL=ON \ | |
-DWITH_CUSTOM_WIDGETS=ON \ | |
-DWITH_BINDINGS=ON \ | |
-DWITH_GRASS=OFF \ | |
-DUSE_CCACHE=ON \ | |
-S . \ | |
-B build | |
- name: Build QGIS | |
run: | | |
cmake --build build | |
ccache -s | |
- name: Save build cache for push only | |
uses: actions/cache/save@v4 | |
if: ${{ github.event_name == 'push' }} | |
with: | |
path: build | |
key: build-ccache-mingw64-msys2-${{ github.ref_name }}-${{ github.run_id }} |