mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 19:05:59 +01:00
Nix: simplify CI
This commit is contained in:
parent
b69f40815f
commit
be22172a35
2 changed files with 6 additions and 9 deletions
11
.github/workflows/nix-build.yaml
vendored
11
.github/workflows/nix-build.yaml
vendored
|
@ -5,13 +5,6 @@ jobs:
|
||||||
nix:
|
nix:
|
||||||
name: "Build Hyprland (Nix)"
|
name: "Build Hyprland (Nix)"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
package:
|
|
||||||
- default
|
|
||||||
- hyprland-no-hidpi
|
|
||||||
- hyprland-nvidia
|
|
||||||
- xdg-desktop-portal-hyprland
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
@ -29,5 +22,5 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: hyprland
|
name: hyprland
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
- name: Build Hyprland with default settings
|
- name: Build packages
|
||||||
run: nix build .#${{ matrix.package }} --print-build-logs
|
run: nix flake check --print-build-logs --accept-flake-config
|
||||||
|
|
|
@ -101,6 +101,10 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
checks = genSystems (system:
|
||||||
|
(lib.filterAttrs (n: _: (lib.hasPrefix "hyprland" n) && !(lib.hasSuffix "debug" n)) self.packages.${system})
|
||||||
|
// {inherit (self.packages.${system}) xdg-desktop-portal-hyprland;});
|
||||||
|
|
||||||
packages = genSystems (system:
|
packages = genSystems (system:
|
||||||
(self.overlays.default null pkgsFor.${system})
|
(self.overlays.default null pkgsFor.${system})
|
||||||
// {
|
// {
|
||||||
|
|
Loading…
Reference in a new issue