From 82c15fb76211bd0a2c493e674b7eb746882446fe Mon Sep 17 00:00:00 2001 From: Karl Ostmo Date: Sun, 30 Jun 2024 14:27:19 -0700 Subject: [PATCH] add vty-input to generated cabal.project --- .github/workflows/haskell-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/haskell-ci.yml b/.github/workflows/haskell-ci.yml index 889dd06..281e0b5 100644 --- a/.github/workflows/haskell-ci.yml +++ b/.github/workflows/haskell-ci.yml @@ -199,11 +199,13 @@ jobs: - name: generate cabal.project run: | PKGDIR_vty="$(find "$GITHUB_WORKSPACE/unpacked" -maxdepth 1 -type d -regex '.*/vty-[0-9.]*')" + PKGDIR_vtyinput="$(find "$GITHUB_WORKSPACE/unpacked" -maxdepth 1 -type d -regex '.*/vty-input-[0-9.]*')" echo "PKGDIR_vty=${PKGDIR_vty}" >> "$GITHUB_ENV" + echo "PKGDIR_vtyinput=${PKGDIR_vtyinput}" >> "$GITHUB_ENV" rm -f cabal.project cabal.project.local touch cabal.project touch cabal.project.local - echo "packages: ${PKGDIR_vty}" >> cabal.project + echo "packages: ${PKGDIR_vty},${PKGDIR_vtyinput}" >> cabal.project if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package vty" >> cabal.project ; fi if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi cat >> cabal.project <