Skip to content

Commit

Permalink
Use Cachix for nix caches
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljharvey committed Nov 7, 2023
1 parent d7816b1 commit e4c2ea9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/nix-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: DeterminateSystems/nix-installer-action@v6
- name: Install Nix ❄
uses: cachix/install-nix-action@v23
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Set up the Nix Cache 🔌
uses: cachix/cachix-action@v12
with:
name: hasura-v3-dev
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}

- name: nix develop --command true
run: |
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/nix-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,15 @@ jobs:
uses: actions/checkout@v4

- name: Install Nix ❄
uses: DeterminateSystems/nix-installer-action@v6
uses: cachix/install-nix-action@v23
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Run the Magic Nix Cache 🔌
uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Set up the Nix Cache 🔌
uses: cachix/cachix-action@v12
with:
name: hasura-v3-dev
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}

# skip until GCP credentials sorted
- id: gcloud-auth
Expand Down

0 comments on commit e4c2ea9

Please sign in to comment.