Skip to content

Fixed generated header #4

Fixed generated header

Fixed generated header #4

Workflow file for this run

name: Build
on:
push:
branches:
- '*'
tags:
- '[0-9]*'
pull_request:
branches:
- '*'
defaults:
run:
shell: bash
env:
build_type: Release
jobs:
linux:
name: Linux
runs-on: ubuntu-latest
strategy:
matrix:
qt_version: [5, 6]
config:
- { name: "GCC", cc: gcc, cxx: g++ }
- { name: "clang", cc: clang, cxx: clang++ }
env:
cc: ${{ matrix.config.cc }}
cxx: ${{ matrix.config.cxx }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Checkout DBusMenu
uses: actions/checkout@v3
with:
repository: qtilities/libdbusmenu-qtilities
path: libdbusmenu-qtilities
- name: Update Packages
run: sudo apt-get update
- name: Install Dependencies
run: |
sudo apt-get install doxygen \
${{ matrix.qt_version == 5
&& 'qtbase5-dev qttools5-dev'
|| 'qt6-base-dev libgl1-mesa-dev qt6-l10n-tools qt6-tools-dev qt6-tools-dev-tools'
}}
- name: Build and install DBusMenu
working-directory: ${{ github.workspace }}/libdbusmenu-qtilities
run: |
options=(
-B build
-D CMAKE_BUILD_TYPE=${{ env.build_type }}
-D CMAKE_INSTALL_PREFIX="/usr"
-D PROJECT_QT_VERSION=${{ matrix.qt_version }}
)
cmake ${options[@]}
cmake --build build --config ${{ env.build_type }}
sudo cmake --install build
- name: Configure
run: |
options=(
-B build
-D CMAKE_BUILD_TYPE=${{ env.build_type }}
-D CMAKE_INSTALL_PREFIX="/usr"
-D PROJECT_QT_VERSION=${{ matrix.qt_version }}
)
cmake ${options[@]}
- name: Build
run: cmake --build build --config ${{ env.build_type }}