]> git.sesse.net Git - bcachefs-tools-debian/commitdiff
add nixos check
authorKayla Firestack <dev@kaylafire.me>
Mon, 18 Oct 2021 18:21:38 +0000 (14:21 -0400)
committerKayla Firestack <dev@kaylafire.me>
Mon, 18 Oct 2021 20:31:21 +0000 (16:31 -0400)
add cachix action

.github/workflows/nixos.yml [new file with mode: 0644]

diff --git a/.github/workflows/nixos.yml b/.github/workflows/nixos.yml
new file mode 100644 (file)
index 0000000..a7684d3
--- /dev/null
@@ -0,0 +1,23 @@
+name: "NixOS-Tests"
+on:
+  pull_request:
+  push:
+jobs:
+  nixos-flake-check:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2.3.4
+    - uses: cachix/install-nix-action@v14
+      with:
+        install_url: https://nixos-nix-install-tests.cachix.org/serve/vij683ly7sl95nnhb67bdjjfabclr85m/install
+        install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
+        extra_nix_config: |
+          experimental-features = nix-command flakes
+          access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
+    - uses: cachix/cachix-action@v10
+      with:
+        name: bcachefs-tools
+        # If you chose API tokens for write access OR if you have a private cache
+        authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
+    - run: nix flake show
+    - run: nix flake check --print-build-logs
\ No newline at end of file