Skip to content

Commit

Permalink
Merge pull request #121 from taj-ny/workflows
Browse files Browse the repository at this point in the history
workflows: add more workflows and improve existing ones
  • Loading branch information
taj-ny authored Nov 24, 2024
2 parents 411567b + 743c1b3 commit b85b778
Show file tree
Hide file tree
Showing 6 changed files with 121 additions and 48 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 ]
paths-ignore: [ "**.md" ]
pull_request:
branches: [ "main", "develop" ]

env:
BUILD_TYPE: Release
branches: [ main ]
paths: [ "**/arch-linux.yml" ]
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 ]
paths-ignore: [ "**.md" ]
pull_request:
branches: [ main ]
paths: [ "**/fedora-40.yml" ]
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
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 ]
paths-ignore: [ "**.md" ]
pull_request:
branches: [ main ]
paths: [ "**/nixos-plasma-6-0-5.yml" ]
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 ]
paths-ignore: [ "**.md" ]
pull_request:
branches: [ main ]
paths: [ "**/nixos-plasma-6-1-5.yml" ]
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.

25 changes: 14 additions & 11 deletions .github/workflows/nixos-unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,26 @@ name: NixOS (nixpkgs unstable)
on:
push:
branches: [ main ]
paths-ignore: [ '**.md', '**.png' ]
paths-ignore: [ "**.md" ]
pull_request:
branches: [ main ]
paths: [ '**', '!**/**.md', '!**/**.png', '!**/**.yml', '**/nixos-unstable.yml' ]
paths: [ "**/nixos-unstable.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-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

0 comments on commit b85b778

Please sign in to comment.