Skip to content

Commit a186c91

Browse files
committed
try to figure out why static builds lack git info
1 parent 62073c9 commit a186c91

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/validate.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ jobs:
336336
apk add bash curl sudo jq pkgconfig \
337337
zlib-dev zlib-static binutils-gold curl \
338338
gcc g++ gmp-dev libc-dev libffi-dev make \
339-
musl-dev ncurses-dev perl tar xz
339+
musl-dev ncurses-dev perl tar xz git
340340
341341
- uses: actions/checkout@v4
342342

@@ -368,9 +368,20 @@ jobs:
368368
run: |
369369
echo 'executable-static: true' >> cabal.validate.project
370370
371+
# Try to figure out why we have no git info, part 1
372+
# The output is kinda nonsense because we don't tag or branch the way it expects,
373+
# but in this case the only worrisome situation is it erroring.
374+
- run: git describe
375+
371376
- name: Build
372377
run: sh validate.sh $FLAGS -s build
373378

379+
# Try to figure out why we have no git info, part 2
380+
- run: |
381+
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
382+
exit 1
383+
fi
384+
374385
- name: Tar cabal head executable
375386
run: |
376387
CABAL_EXEC=$(cabal list-bin --builddir=dist-newstyle-validate-ghc-${{ env.GHC_FOR_RELEASE }} --project-file=cabal.validate.project cabal-install:exe:cabal)

0 commit comments

Comments
 (0)