Skip to content

Commit

Permalink
add workflows from main
Browse files Browse the repository at this point in the history
  • Loading branch information
taj-ny committed Jan 11, 2025
1 parent 9437c77 commit d2ce9d0
Show file tree
Hide file tree
Showing 9 changed files with 225 additions and 50 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/arch-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
31 changes: 31 additions & 0 deletions .github/workflows/fedora-40.yml
Original file line number Diff line number Diff line change
@@ -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
31 changes: 31 additions & 0 deletions .github/workflows/fedora-41.yml
Original file line number Diff line number Diff line change
@@ -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
37 changes: 37 additions & 0 deletions .github/workflows/neon-unstable.yml
Original file line number Diff line number Diff line change
@@ -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
32 changes: 32 additions & 0 deletions .github/workflows/nixos-plasma-6-0-5.yml
Original file line number Diff line number Diff line change
@@ -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
32 changes: 32 additions & 0 deletions .github/workflows/nixos-plasma-6-1-5.yml
Original file line number Diff line number Diff line change
@@ -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
26 changes: 0 additions & 26 deletions .github/workflows/nixos-stable.yml

This file was deleted.

29 changes: 16 additions & 13 deletions .github/workflows/nixos-unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
34 changes: 34 additions & 0 deletions .github/workflows/opensuse-tumbleweed.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d2ce9d0

Please sign in to comment.