hnix-store/.github/workflows/ci.sh

18 lines
466 B
Bash
Raw Normal View History

2023-11-08 17:44:21 +03:00
#!/usr/bin/env bash
# Script by @fisx
set -eo pipefail
cd "$( dirname "${BASH_SOURCE[0]}" )"
which dhall || cabal install dhall
2023-11-08 17:44:21 +03:00
which dhall-to-yaml || cabal install dhall-yaml
echo "dhall format-ing ci.dhall"
dhall format ci.dhall
echo "cp haskellCi.dhall -> ci.dhall.frozen"
cp ci.dhall ci.dhall.frozen
echo "dhall freez-ing ci.dhall.frozen"
dhall freeze ci.dhall.frozen
2023-11-08 17:44:21 +03:00
echo "regenerating ci.yaml"
dhall-to-yaml-ng --generated-comment --file ci.dhall > ci.yaml