summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorKayla Firestack <dev@kaylafire.me>2021-10-18 14:21:38 -0400
committerKayla Firestack <dev@kaylafire.me>2021-10-18 16:31:21 -0400
commit3db34427e6ec22a59b1038f778c24a03a90b862b (patch)
treeb08613f0f135f3574a98f6886ab99bab7e918a0e /.github/workflows
parent1f8fc31ddc1975a1f2e7c2fa8f7f611eab761680 (diff)
add nixos check
add cachix action
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/nixos.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/nixos.yml b/.github/workflows/nixos.yml
new file mode 100644
index 00000000..a7684d35
--- /dev/null
+++ b/.github/workflows/nixos.yml
@@ -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