let's try this

This commit is contained in:
Maciej 2024-08-15 19:00:37 +03:00
parent 15be90691f
commit 2f44d12c4c
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
6 changed files with 221 additions and 1 deletions

View file

@ -0,0 +1,21 @@
#!/usr/bin/env bash
# Users should use install-nix-action if they want to customise how Nix is installed.
set -euo pipefail
if ! type -p nix &>/dev/null ; then
env INPUT_EXTRA_NIX_CONFIG= \
INPUT_INSTALL_OPTIONS= \
INPUT_INSTALL_URL= \
INPUT_NIX_PATH="nixpkgs=channel:nixos-unstable" \
INPUT_ENABLE_KVM=true \
"$(dirname "$0")"/install-nix.sh
# Make the installed Nix immediately available here
source "$GITHUB_ENV"
while IFS= read -r dir; do PATH="$dir:$PATH"; done < "$GITHUB_PATH"
fi
echo "::group::Configuring build cache and installing Emacs"
nix profile install --accept-flake-config "github:purcell/nix-emacs-ci#emacs-${INPUT_VERSION/./-}"
echo "::endgroup::"