Skip to content

Commit

Permalink
try to figure out why static builds lack git info
Browse files Browse the repository at this point in the history
  • Loading branch information
geekosaur committed Dec 31, 2024
1 parent 62073c9 commit 5b28d86
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,20 @@ jobs:
run: |
echo 'executable-static: true' >> cabal.validate.project
# Try to figure out why we have no git info, part 1
# The output is kinda nonsense because we don't tag or branch the way it expects,
# but in this case the only worrisome situation is it erroring.
- run: git describe

- name: Build
run: sh validate.sh $FLAGS -s build

# Try to figure out why we have no git info, part 2
- run: |
if $(cabal list-bin --builddir=dist-newstyle-validate-ghc-${{ env.GHC_FOR_RELEASE }} --project-file=cabal.validate.project cabal-install:exe:cabal) --version 2>&1 | grep ' , '; then
exit 1
fi
- name: Tar cabal head executable
run: |
CABAL_EXEC=$(cabal list-bin --builddir=dist-newstyle-validate-ghc-${{ env.GHC_FOR_RELEASE }} --project-file=cabal.validate.project cabal-install:exe:cabal)
Expand Down

0 comments on commit 5b28d86

Please sign in to comment.