1
0
Fork 0
mirror of https://git.madhouse-project.org/actions/nix.git synced 2024-11-23 20:19:16 +01:00
nix/build/bin/nix-build
Gergely Nagy 680f954a87 Add a nix/build action
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
2023-09-22 20:22:33 +02:00

12 lines
261 B
Bash
Executable file

#! /usr/bin/env bash
set -eo pipefail
LOGS=""
case "${INPUT_LOGS}" in
[yY][eE][sS]|[tT][rR][uU][eE]|[oO][nN]|1)
LOGS=-L
;;
esac
nix build ${LOGS} "${INPUT_FLAKE}#${INPUT_PACKAGE}"
echo "output-path=$(readlink result)" >>"${GITHUB_OUTPUT}"