aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorMihai Fufezan <[email protected]>2023-07-04 23:21:24 +0300
committerMihai Fufezan <[email protected]>2023-07-05 16:46:02 +0300
commit981c71e60a4db9838e82dd721f0e5ae4981529aa (patch)
treee2a73daaeed25118d394b322ae74a5f9c8a64307 /.github
parent86e487e003490195f88b8deaf2b1f4baa75b0058 (diff)
downloadHyprland-981c71e60a4db9838e82dd721f0e5ae4981529aa.tar.gz
Hyprland-981c71e60a4db9838e82dd721f0e5ae4981529aa.zip
Nix CI: split inputs and wlroots updating
Now there are separate update scripts for wlroots and for all other inputs.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/nix-update-inputs.yaml40
-rw-r--r--.github/workflows/nix-update-wlroots.yaml (renamed from .github/workflows/nix-update.yaml)16
2 files changed, 51 insertions, 5 deletions
diff --git a/.github/workflows/nix-update-inputs.yaml b/.github/workflows/nix-update-inputs.yaml
new file mode 100644
index 00000000..3711388d
--- /dev/null
+++ b/.github/workflows/nix-update-inputs.yaml
@@ -0,0 +1,40 @@
+name: "Nix update"
+
+on:
+ schedule:
+ - cron: '0 0 * * *'
+
+jobs:
+ update:
+ name: "inputs"
+ runs-on: ubuntu-latest
+ steps:
+ - name: Clone repository
+ uses: actions/checkout@v3
+
+ - name: Install nix
+ uses: cachix/install-nix-action@v20
+ with:
+ install_url: https://nixos.org/nix/install
+ extra_nix_config: |
+ auto-optimise-store = true
+ access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
+ experimental-features = nix-command flakes
+
+ - name: Update lockfile
+ run: nix/update-nixpkgs.sh
+
+ - uses: cachix/cachix-action@v12
+ with:
+ name: hyprland
+ authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
+
+ - name: Build packages
+ run: nix flake check --print-build-logs --accept-flake-config
+
+ - name: Build Waybar-Hyprland
+ run: nix build .#waybar-hyprland --print-build-logs
+
+ - uses: stefanzweifel/git-auto-commit-action@v4
+ with:
+ commit_message: "Nix: bump inputs"
diff --git a/.github/workflows/nix-update.yaml b/.github/workflows/nix-update-wlroots.yaml
index 7bd84350..25650400 100644
--- a/.github/workflows/nix-update.yaml
+++ b/.github/workflows/nix-update-wlroots.yaml
@@ -1,13 +1,15 @@
-name: "Nix: update lockfile"
+name: "Nix update"
on: [push, workflow_dispatch]
jobs:
update:
+ name: "wlroots"
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
+
- name: Install nix
uses: cachix/install-nix-action@v20
with:
@@ -16,14 +18,18 @@ jobs:
auto-optimise-store = true
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
experimental-features = nix-command flakes
+
- name: Update lockfile
- run: nix/update-inputs.sh
+ run: nix/update-wlroots.sh
+
- uses: cachix/cachix-action@v12
with:
name: hyprland
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- - name: Build Waybar-Hyprland
- run: nix build .#waybar-hyprland --print-build-logs
+
+ - name: Build packages
+ run: nix flake check --print-build-logs --accept-flake-config
+
- uses: stefanzweifel/git-auto-commit-action@v4
with:
- commit_message: "[gha] bump flake inputs"
+ commit_message: "Nix: bump wlroots"