Skip to content

Commit

Permalink
ci: Use Cachix instead of Magic Nix Cache for push
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzleutgeb committed Sep 17, 2023
1 parent 1730380 commit d059973
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: CI
name: nix flake check

on:
push:
pull_request:

jobs:
Expand All @@ -14,4 +13,6 @@ jobs:
extra-conf: |
experimental-features = no-url-literals
- uses: DeterminateSystems/magic-nix-cache-action@main
with:
upstream-cache: https://ngi.cachix.org/
- run: nix flake check
19 changes: 19 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: nix flake check

on:
push:

jobs:
check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
experimental-features = no-url-literals
- uses: cachix/cachix-action@v10
with:
name: ngi
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix flake check

0 comments on commit d059973

Please sign in to comment.