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 a186c91
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ jobs:
apk add bash curl sudo jq pkgconfig \
zlib-dev zlib-static binutils-gold curl \
gcc g++ gmp-dev libc-dev libffi-dev make \
musl-dev ncurses-dev perl tar xz
musl-dev ncurses-dev perl tar xz git
- uses: actions/checkout@v4

Expand Down 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 a186c91

Please sign in to comment.