aboutsummaryrefslogtreecommitdiffhomepage
path: root/.gitea/workflows/nix.yml
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-12-17 11:06:23 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-12-17 11:12:39 +0900
commit65dc39956f245739c31ad43a4d2ee5bfaac4edcc (patch)
treefe8f1c271bb9cb5683b657318ae5177b2324eedb /.gitea/workflows/nix.yml
parent35505c8a26893cfedd07fc8b0aae962c7b2d82d7 (diff)
workflows: set action names
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to '.gitea/workflows/nix.yml')
-rw-r--r--.gitea/workflows/nix.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.gitea/workflows/nix.yml b/.gitea/workflows/nix.yml
new file mode 100644
index 00000000..5054a597
--- /dev/null
+++ b/.gitea/workflows/nix.yml
@@ -0,0 +1,26 @@
+name: Nix
+
+on:
+ - push
+ - pull_request
+
+jobs:
+ tests:
+ name: NixOS tests
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+
+ - name: Install Nix
+ uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
+ with:
+ # explicitly enable sandbox
+ install_options: --daemon
+ extra_nix_config: |
+ sandbox = true
+ system-features = nixos-test benchmark big-parallel kvm
+ enable_kvm: true
+
+ - name: Run tests
+ run: nix --print-build-logs --experimental-features 'nix-command flakes' flake check --all-systems \ No newline at end of file