Skip to content

Commit

Permalink
ci: try cna
Browse files Browse the repository at this point in the history
  • Loading branch information
develop7 committed Oct 31, 2023
1 parent dc01c74 commit 3a6e233
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/actions/setup-nix/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,29 @@ inputs:
runs:
using: composite
steps:
- uses: cachix/install-nix-action@v23
- uses: nixbuild/nix-quick-install-action@v26
with:
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
nix_version: '2.13.6'
- uses: cachix/cachix-action@v12
with:
name: postgrest
authToken: ${{ inputs.authToken }}
- name: Restore and cache Nix store
uses: nix-community/cache-nix-action@v4
with:
key: cache-${{ runner.os }}-${{ hashFiles('nix/**/*.nix') }}
restore-keys: |
cache-${{ runner.os }}-
gc-linux: true
gc-max-store-size-linux: 1000000000
gc-macos: true
gc-max-store-size-macos: 1000000000
purge-caches: true
purge-key: cache-${{ matrix.os }}-
purge-created: true
purge-created-max-age: 42

- if: ${{ inputs.tools }}
run: nix-env -f default.nix -iA ${{ inputs.tools }}
shell: bash

0 comments on commit 3a6e233

Please sign in to comment.