dmx-interface/.github/actions/install-nix/action.yml

16 lines
568 B
YAML

name: install-nix
description: Install Nix with flakes enabled and pre-warm the repository's flake devShell
runs:
using: composite
steps:
- name: Install Nix (with flakes)
uses: cachix/install-nix-action@v31
with:
extra_nix_config: |
experimental-features = nix-command flakes
- name: Pre-warm flake devShell
run: |
# Use the repository's `flake.nix` devShell to fetch dependencies.
# This speeds up later `nix develop` invocations in workflow steps.
nix develop --command true
shell: bash