From 215b0790fd7ee7668132bd6b6606620a9455af04 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 3 Oct 2023 15:46:51 +0200 Subject: [PATCH] CI: add fedora to the mix --- .github/workflows/nightly-fedora-qt6.yml | 33 ++++++++++++++++++++++++ ci/deps-fedora-qt6.sh | 18 +++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .github/workflows/nightly-fedora-qt6.yml create mode 100755 ci/deps-fedora-qt6.sh diff --git a/.github/workflows/nightly-fedora-qt6.yml b/.github/workflows/nightly-fedora-qt6.yml new file mode 100644 index 000000000..2c8c3af1d --- /dev/null +++ b/.github/workflows/nightly-fedora-qt6.yml @@ -0,0 +1,33 @@ +name: nightly-fedora-qt6 + +on: + schedule: + - cron: "52 2 * * *" + workflow_dispatch: + +env: + BUILDDIR: /build + SRCDIR: ${{ github.workspace }} + CMAKE_ARGS: | + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON + -DCMAKE_BUILD_TYPE=Debug + -DWITH_QT6=ON + +jobs: + build: + runs-on: ubuntu-latest + container: + image: docker://fedora:38 + options: --tmpfs /build:rw --user 0:0 + steps: + - name: "prepare git" + shell: bash + run: yum install -y git-core jq curl + - name: "prepare source" + uses: calamares/actions/generic-checkout@v5 + - name: "install dependencies" + shell: bash + run: ./ci/deps-fedora-qt6.sh + - name: "build" + shell: bash + run: ./ci/build.sh diff --git a/ci/deps-fedora-qt6.sh b/ci/deps-fedora-qt6.sh new file mode 100755 index 000000000..aea4ba686 --- /dev/null +++ b/ci/deps-fedora-qt6.sh @@ -0,0 +1,18 @@ +#! /bin/sh +# +# Install dependencies for the nightly-fedora-qt6 build +# + +# Add the KF6 repo +dnf install -y 'dnf-command(copr)' +dnf copr enable -y @kdesig/kde-nightly-qt6 + +yum install -y bison flex git make cmake gcc-c++ ninja-build +yum install -y yaml-cpp-devel libpwquality-devel parted-devel python-devel gettext gettext-devel +yum install -y libicu-devel libatasmart-devel +# Qt6/KF6 dependencies +yum install -y qt6-qtbase-devel qt6-linguist qt6-qtbase-private-devel qt6-qtdeclarative-devel qt6-qtsvg-devel qt6-qttools-devel +yum install -y kf6-kcoreaddons-devel kf6-kdbusaddons-devel kf6-kcrash-devel +yum install -y polkit-qt6-1-devel appstream-qt-devel +# Runtime dependencies for QML modules +yum install -y kf6-kirigami2-devel qt6-qt5compat-devel