From d2ce9d07e5c32eb752fdaefb71229ab7f0fc96b9 Mon Sep 17 00:00:00 2001 From: taj-ny <79316397+taj-ny@users.noreply.github.com> Date: Sat, 11 Jan 2025 14:21:33 +0100 Subject: [PATCH] add workflows from main --- .github/workflows/arch-linux.yml | 23 +++++++------- .github/workflows/fedora-40.yml | 31 +++++++++++++++++++ .github/workflows/fedora-41.yml | 31 +++++++++++++++++++ .github/workflows/neon-unstable.yml | 37 +++++++++++++++++++++++ .github/workflows/nixos-plasma-6-0-5.yml | 32 ++++++++++++++++++++ .github/workflows/nixos-plasma-6-1-5.yml | 32 ++++++++++++++++++++ .github/workflows/nixos-stable.yml | 26 ---------------- .github/workflows/nixos-unstable.yml | 29 ++++++++++-------- .github/workflows/opensuse-tumbleweed.yml | 34 +++++++++++++++++++++ 9 files changed, 225 insertions(+), 50 deletions(-) create mode 100644 .github/workflows/fedora-40.yml create mode 100644 .github/workflows/fedora-41.yml create mode 100644 .github/workflows/neon-unstable.yml create mode 100644 .github/workflows/nixos-plasma-6-0-5.yml create mode 100644 .github/workflows/nixos-plasma-6-1-5.yml delete mode 100644 .github/workflows/nixos-stable.yml create mode 100644 .github/workflows/opensuse-tumbleweed.yml diff --git a/.github/workflows/arch-linux.yml b/.github/workflows/arch-linux.yml index b83973770..d4662ebd8 100644 --- a/.github/workflows/arch-linux.yml +++ b/.github/workflows/arch-linux.yml @@ -2,12 +2,13 @@ name: Arch Linux on: push: - branches: [ "main", "develop" ] + branches: [ main, old ] + paths-ignore: [ "**.md" ] pull_request: - branches: [ "main", "develop" ] - -env: - BUILD_TYPE: Release + branches: [ main, old ] + paths-ignore: [ "**.md" ] + schedule: + - cron: "0 0 * * *" jobs: build: @@ -17,17 +18,17 @@ jobs: options: --user root steps: + - name: Check out repository + uses: actions/checkout@v4 + - name: Refresh Packages run: pacman -Syu --noconfirm - name: Install Dependencies - run: pacman -S --noconfirm base-devel git extra-cmake-modules qt6-tools kwin - - - name: Check out repository - uses: actions/checkout@v4 + run: pacman -S --needed --noconfirm base-devel git extra-cmake-modules qt6-tools kwin - name: Configure CMake - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + run: cmake -B ${{github.workspace}}/build - name: Build - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + run: cmake --build ${{github.workspace}}/build -j diff --git a/.github/workflows/fedora-40.yml b/.github/workflows/fedora-40.yml new file mode 100644 index 000000000..876dbd9b3 --- /dev/null +++ b/.github/workflows/fedora-40.yml @@ -0,0 +1,31 @@ +name: Fedora 40 + +on: + push: + branches: [ main, old ] + paths-ignore: [ "**.md" ] + pull_request: + branches: [ main, old ] + paths-ignore: [ "**.md" ] + schedule: + - cron: "0 0 * * *" + +jobs: + build: + runs-on: ubuntu-latest + container: + image: fedora:40 + options: --user root + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Install Dependencies + run: dnf -y install git cmake extra-cmake-modules gcc-g++ kf6-kwindowsystem-devel plasma-workspace-devel libplasma-devel qt6-qtbase-private-devel qt6-qtbase-devel cmake kwin-devel extra-cmake-modules kwin-devel kf6-knotifications-devel kf6-kio-devel kf6-kcrash-devel kf6-ki18n-devel kf6-kguiaddons-devel libepoxy-devel kf6-kglobalaccel-devel kf6-kcmutils-devel kf6-kconfigwidgets-devel kf6-kdeclarative-devel kdecoration-devel kf6-kglobalaccel kf6-kdeclarative libplasma kf6-kio qt6-qtbase kf6-kguiaddons kf6-ki18n wayland-devel + + - name: Configure CMake + run: cmake -B ${{github.workspace}}/build + + - name: Build + run: cmake --build ${{github.workspace}}/build -j diff --git a/.github/workflows/fedora-41.yml b/.github/workflows/fedora-41.yml new file mode 100644 index 000000000..b392aeb32 --- /dev/null +++ b/.github/workflows/fedora-41.yml @@ -0,0 +1,31 @@ +name: Fedora 41 + +on: + push: + branches: [ main, old ] + paths-ignore: [ "**.md" ] + pull_request: + branches: [ main, old ] + paths-ignore: [ "**.md" ] + schedule: + - cron: "0 0 * * *" + +jobs: + build: + runs-on: ubuntu-latest + container: + image: fedora:41 + options: --user root + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Install Dependencies + run: dnf -y install git cmake extra-cmake-modules gcc-g++ kf6-kwindowsystem-devel plasma-workspace-devel libplasma-devel qt6-qtbase-private-devel qt6-qtbase-devel cmake kwin-devel extra-cmake-modules kwin-devel kf6-knotifications-devel kf6-kio-devel kf6-kcrash-devel kf6-ki18n-devel kf6-kguiaddons-devel libepoxy-devel kf6-kglobalaccel-devel kf6-kcmutils-devel kf6-kconfigwidgets-devel kf6-kdeclarative-devel kdecoration-devel kf6-kglobalaccel kf6-kdeclarative libplasma kf6-kio qt6-qtbase kf6-kguiaddons kf6-ki18n wayland-devel + + - name: Configure CMake + run: cmake -B ${{github.workspace}}/build + + - name: Build + run: cmake --build ${{github.workspace}}/build -j diff --git a/.github/workflows/neon-unstable.yml b/.github/workflows/neon-unstable.yml new file mode 100644 index 000000000..936735e44 --- /dev/null +++ b/.github/workflows/neon-unstable.yml @@ -0,0 +1,37 @@ +name: KDE Neon (unstable) + +on: + push: + branches: [ main, old ] + paths-ignore: [ "**.md" ] + pull_request: + branches: [ main, old ] + paths-ignore: [ "**.md" ] + schedule: + - cron: "0 0 * * *" + +jobs: + build: + runs-on: ubuntu-latest + container: + image: invent-registry.kde.org/neon/docker-images/plasma:unstable + options: --user root + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Refresh Packages + run: apt update + + - name: Upgrade Packages + run: apt upgrade -y --allow-downgrades + + - name: Install Dependencies + run: apt install -y cmake g++ extra-cmake-modules qt6-tools-dev kwin-dev libkf6configwidgets-dev gettext libkf6crash-dev libkf6globalaccel-dev libkf6kio-dev libkf6service-dev libkf6notifications-dev libkf6kcmutils-dev libkdecorations3-dev + + - name: Configure CMake + run: cmake -B ${{github.workspace}}/build + + - name: Build + run: cmake --build ${{github.workspace}}/build -j diff --git a/.github/workflows/nixos-plasma-6-0-5.yml b/.github/workflows/nixos-plasma-6-0-5.yml new file mode 100644 index 000000000..9e6bc94c6 --- /dev/null +++ b/.github/workflows/nixos-plasma-6-0-5.yml @@ -0,0 +1,32 @@ +name: NixOS (Plasma 6.0.5) + +on: + push: + branches: [ main, old ] + paths-ignore: [ "**.md" ] + pull_request: + branches: [ main, old ] + paths-ignore: [ "**.md" ] + schedule: + - cron: "0 0 * * *" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Install Nix + uses: cachix/install-nix-action@v27 + with: + nix_path: nixpkgs=channel:e8c38b73aeb218e27163376a2d617e61a2ad9b59 + + - name: Patch flake.nix + run: sed -i 's/nixos-unstable/e8c38b73aeb218e27163376a2d617e61a2ad9b59/g' flake.nix + + - name: Update flake.lock + run: nix flake update + + - name: Build + run: nix build diff --git a/.github/workflows/nixos-plasma-6-1-5.yml b/.github/workflows/nixos-plasma-6-1-5.yml new file mode 100644 index 000000000..0c2c290ae --- /dev/null +++ b/.github/workflows/nixos-plasma-6-1-5.yml @@ -0,0 +1,32 @@ +name: NixOS (Plasma 6.1.5) + +on: + push: + branches: [ main, old ] + paths-ignore: [ "**.md" ] + pull_request: + branches: [ main, old ] + paths-ignore: [ "**.md" ] + schedule: + - cron: "0 0 * * *" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Install Nix + uses: cachix/install-nix-action@v27 + with: + nix_path: nixpkgs=channel:33bca54e5e23eac33b668ebc71d576203f3ccf3b + + - name: Patch flake.nix + run: sed -i 's/nixos-unstable/33bca54e5e23eac33b668ebc71d576203f3ccf3b/g' flake.nix + + - name: Update flake.lock + run: nix flake update + + - name: Build + run: nix build diff --git a/.github/workflows/nixos-stable.yml b/.github/workflows/nixos-stable.yml deleted file mode 100644 index a38811bf3..000000000 --- a/.github/workflows/nixos-stable.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: NixOS (nixpkgs stable) - -on: - push: - branches: [ main ] - paths-ignore: [ '**.md', '**.png' ] - pull_request: - branches: [ main ] - paths: [ '**', '!**/**.md', '!**/**.png', '!**/**.yml', '**/nixos-stable.yml' ] - schedule: - - cron: "0 0 * * *" - -env: - BUILD_TYPE: Release - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v27 - with: - nix_path: nixpkgs=channel:nixos-24.05 - - run: sed -i 's/nixos-unstable/nixos-24.05/g' flake.nix - - run: nix flake update - - run: nix build diff --git a/.github/workflows/nixos-unstable.yml b/.github/workflows/nixos-unstable.yml index 0d2ab7123..7e04d53f4 100644 --- a/.github/workflows/nixos-unstable.yml +++ b/.github/workflows/nixos-unstable.yml @@ -2,24 +2,27 @@ name: NixOS (nixpkgs unstable) on: push: - branches: [ main ] - paths-ignore: [ '**.md', '**.png' ] + branches: [ main, old ] + paths-ignore: [ "**.md" ] pull_request: - branches: [ main ] - paths: [ '**', '!**/**.md', '!**/**.png', '!**/**.yml', '**/nixos-unstable.yml' ] + branches: [ main, old ] + paths-ignore: [ "**.md" ] schedule: - cron: "0 0 * * *" -env: - BUILD_TYPE: Release - jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v27 - with: - nix_path: nixpkgs=channel:nixos-unstable - - run: nix flake update - - run: nix build + - name: Check out repository + uses: actions/checkout@v4 + + - name: Install Nix + uses: cachix/install-nix-action@v27 + with: + nix_path: nixpkgs=channel:nixos-unstable + - name: Update flake.lock + run: nix flake update + + - name: Build + run: nix build diff --git a/.github/workflows/opensuse-tumbleweed.yml b/.github/workflows/opensuse-tumbleweed.yml new file mode 100644 index 000000000..274acdd11 --- /dev/null +++ b/.github/workflows/opensuse-tumbleweed.yml @@ -0,0 +1,34 @@ +name: openSUSE Tumbleweed + +on: + push: + branches: [ main, old ] + paths-ignore: [ "**.md" ] + pull_request: + branches: [ main, old ] + paths-ignore: [ "**.md" ] + schedule: + - cron: "0 0 * * *" + +jobs: + build: + runs-on: ubuntu-latest + container: + image: opensuse/tumbleweed + options: --user root + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Refresh Packages + run: zypper ref + + - name: Install Dependencies + run: zypper in -y git cmake-full gcc-c++ kf6-extra-cmake-modules kcoreaddons-devel kguiaddons-devel kconfigwidgets-devel kwindowsystem-devel ki18n-devel kiconthemes-devel kpackage-devel frameworkintegration-devel kcmutils-devel kirigami2-devel "cmake(KF6Config)" "cmake(KF6CoreAddons)" "cmake(KF6FrameworkIntegration)" "cmake(KF6GuiAddons)" "cmake(KF6I18n)" "cmake(KF6KCMUtils)" "cmake(KF6KirigamiPlatform)" "cmake(KF6WindowSystem)" "cmake(Qt6Core)" "cmake(Qt6DBus)" "cmake(Qt6Quick)" "cmake(Qt6Svg)" "cmake(Qt6Widgets)" "cmake(Qt6Xml)" "cmake(Qt6UiTools)" "cmake(KF6Crash)" "cmake(KF6GlobalAccel)" "cmake(KF6KIO)" "cmake(KF6Service)" "cmake(KF6Notifications)" libepoxy-devel kwin6-devel + + - name: Configure CMake + run: cmake -B ${{github.workspace}}/build + + - name: Build + run: cmake --build ${{github.workspace}}/build -j