summary refs log tree commit diff
path: root/.github
diff options
context:
space:
mode:
authorRory& <myrainbowdash949@gmail.com>2024-02-19 10:09:50 +0000
committerGitHub <noreply@github.com>2024-02-19 21:09:50 +1100
commit29df169c81d963742cc973a8835a7c1a126d7220 (patch)
tree7db8092c20e187ff812f8b9f71b28c5c25641d56 /.github
parentFix application icons (#1110) (diff)
downloadserver-29df169c81d963742cc973a8835a7c1a126d7220.tar.xz
Add nix flake to repo (#1111)
Diffstat (limited to '.github')
-rw-r--r--.github/CODEOWNERS3
-rw-r--r--.github/workflows/nix-build.yml18
2 files changed, 21 insertions, 0 deletions
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
new file mode 100644
index 00000000..b55d76cd
--- /dev/null
+++ b/.github/CODEOWNERS
@@ -0,0 +1,3 @@
+# Nix stuff is owned by Rory& - we& want to be notified if these are changed.
+/flake.nix root@rory.gay
+/nix-update.sh root@rory.gay
\ No newline at end of file
diff --git a/.github/workflows/nix-build.yml b/.github/workflows/nix-build.yml
new file mode 100644
index 00000000..ae9afa2e
--- /dev/null
+++ b/.github/workflows/nix-build.yml
@@ -0,0 +1,18 @@
+name: Nix build
+
+on:
+  push:
+  pull_request:
+
+jobs:
+  build-nix:
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v4
+    - uses: cachix/install-nix-action@v25
+      with:
+        nix_path: nixpkgs=channel:nixos-unstable
+    - uses: DeterminateSystems/magic-nix-cache-action@v2
+    - run: nix build -L
+    - run: nix develop --command echo OK