Skip to content

Commit

Permalink
Merge pull request #55 from ngi-nix/cache
Browse files Browse the repository at this point in the history
ci: Use Cachix instead of Magic Nix Cache for push
  • Loading branch information
lorenzleutgeb authored Sep 26, 2023
2 parents c2e29a8 + d059973 commit 8fc379e
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 8fc379e

Please sign in to comment.