Preliminary Qt 6.5 support #68
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: Linux Qt5 CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
tags: | |
- '**' | |
paths-ignore: | |
- ".gitignore" | |
- "README.md" | |
# ignore CI for other platforms | |
- ".github/FUNDING.yml" | |
- ".github/workflows/Android-Qt5.yml" | |
- ".github/workflows/Android-Qt6.yml" | |
- ".github/workflows/iOS-Qt5.yml" | |
- ".github/workflows/iOS-Qt6.yml" | |
- ".github/workflows/Linux-Qt6.yml" | |
- ".github/workflows/macOS-Qt5.yml" | |
- ".github/workflows/macOS-Qt6.yml" | |
- ".github/workflows/Windows-Qt5.yml" | |
- ".github/workflows/Windows-Qt6.yml" | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- ".gitignore" | |
- "README.md" | |
# ignore CI for other platforms | |
- ".github/FUNDING.yml" | |
- ".github/workflows/Android-Qt5.yml" | |
- ".github/workflows/Android-Qt6.yml" | |
- ".github/workflows/iOS-Qt5.yml" | |
- ".github/workflows/iOS-Qt6.yml" | |
- ".github/workflows/Linux-Qt6.yml" | |
- ".github/workflows/macOS-Qt5.yml" | |
- ".github/workflows/macOS-Qt6.yml" | |
- ".github/workflows/Windows-Qt5.yml" | |
- ".github/workflows/Windows-Qt6.yml" | |
concurrency: | |
# cancel jobs on PRs only | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
env: | |
QT_VERSION: 5.15.2 | |
jobs: | |
build-core: | |
name: "Build maplibre-gl-native" | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
path: source | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Download Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
aqtversion: ==3.0.* | |
version: ${{ env.QT_VERSION }} | |
dir: ${{ github.workspace }} | |
target: desktop | |
- name: Set up ccache | |
uses: hendrikmuhs/ccache-action@v1 | |
with: | |
key: Linux_maplibre-gl-native_legacy | |
append-timestamp: false | |
- name: Build maplibre-gl-native | |
uses: ./source/.github/actions/qt5-build | |
with: | |
build-type: library | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: maplibre-gl-native_Linux | |
path: install-qmaplibregl | |
build-plugin: | |
name: "Build qt-geoservices-maplibre-gl" | |
runs-on: ubuntu-22.04 | |
needs: build-core | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
path: source | |
fetch-depth: 0 | |
- name: Download Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
aqtversion: ==3.0.* | |
version: ${{ env.QT_VERSION }} | |
dir: ${{ github.workspace }} | |
target: desktop | |
- name: Set up ccache | |
uses: hendrikmuhs/ccache-action@v1 | |
with: | |
key: Linux_qt-geoservices-maplibre-gl_legacy | |
append-timestamp: false | |
- name: Download artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
name: maplibre-gl-native_Linux | |
path: install-qmaplibregl | |
- name: Build qt-geoservices-maplibre-gl | |
uses: ./source/.github/actions/qt5-build | |
with: | |
build-type: plugin | |
- name: Create artifacts | |
run: | | |
pushd install/github/workspace | |
tar cjvf ../../../qt-geoservices-maplibre-gl_Linux.tar.bz2 Qt | |
popd | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: qt-geoservices-maplibre-gl_Linux | |
path: qt-geoservices-maplibre-gl_Linux.tar.bz2 | |
release: | |
name: "Release qt-geoservices-maplibre-gl" | |
if: github.ref_type == 'tag' | |
runs-on: ubuntu-22.04 | |
needs: build-plugin | |
permissions: | |
contents: write | |
steps: | |
- name: Download artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
name: qt-geoservices-maplibre-gl_Linux | |
- name: Name tarball | |
env: | |
TAG_NAME: ${{ github.ref_name }} | |
run: | | |
mv qt-geoservices-maplibre-gl_Linux.tar.bz2 qt-geoservices-maplibre-gl_${TAG_NAME}_Qt${QT_VERSION}_Linux.tar.bz2 | |
- name: Release | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: qt-geoservices-maplibre-gl_${{ github.ref_name }}_Qt${{ env.QT_VERSION }}_Linux.tar.bz2 | |
allowUpdates: true | |
draft: true |