The nix actions cache currently leads to repeated "no space left on devices" errors for jobs in CI. The prepopulate job is useless without the nix actions cache, so it will go away at the same time.
24 lines
573 B
YAML
24 lines
573 B
YAML
name: Setup Nix
|
|
|
|
description: Installs nix, sets up cachix and installs a subset of tooling.
|
|
|
|
inputs:
|
|
authToken:
|
|
description: Token to pass to cachix
|
|
tools:
|
|
description: Tools to install with nix-env -iA <tools>
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- uses: nixbuild/nix-quick-install-action@v26
|
|
with:
|
|
nix_version: '2.13.6'
|
|
- uses: cachix/cachix-action@v14
|
|
with:
|
|
name: postgrest
|
|
authToken: ${{ inputs.authToken }}
|
|
- if: ${{ inputs.tools }}
|
|
run: nix-env -f default.nix -iA ${{ inputs.tools }}
|
|
shell: bash
|