Switch to versionless imports #144
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
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL | |
# SPDX-FileCopyrightText: 2021-2024 Eike Hein <[email protected]> | |
name: Documentation | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 # Current base for KDE Neon | |
container: | |
image: invent-registry.kde.org/neon/docker-images/plasma:developer | |
options: --user root | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
apt-get update | |
apt-get install -y build-essential git cmake gettext | |
apt-get install -y qt6-base-dev qt6-declarative-dev qt6-httpserver-dev qt6-remoteobjects-dev \ | |
qt6-serialport-dev qt6-shadertools-dev qt6-websockets-dev | |
apt-get install -y extra-cmake-modules kf6-kconfig-dev kf6-kcoreaddons-dev kf6-ki18n-dev | |
apt-get install -y graphviz doxygen doxyqml | |
- name: Configure | |
run: | | |
cmake \ | |
-B build \ | |
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \ | |
-DBUILD_ONBOARD=false \ | |
-DBUILD_CLI=false \ | |
-DBUILD_DOCS=true | |
- name: Build | |
run: cmake --build build --config ${{env.BUILD_TYPE}} | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: build/docs/html/ | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v4 |