Skip to content

Commit

Permalink
Make sure hls-wrapper binary comes from GHC-8.10.7
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Mar 6, 2023
1 parent e453d4b commit 3a5d5de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/scripts/bindist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ case "${TARBALL_EXT}" in
)
;;
tar.xz)
GHCS="$(cd "$CI_PROJECT_DIR/out/${ARTIFACT}" && rm -f ./*.json && for ghc in * ; do printf "%s " "$ghc" ; done)"
# we need to control the order, so the hls wrapper binary is installed
# from the oldest version in the list
: "${GHCS:="$(cd "$CI_PROJECT_DIR/out/${ARTIFACT}" && rm -f ./*.json && for ghc in * ; do printf "%s\n" "$ghc" ; done | sort -r | tr '\n' ' ')"}"
emake --version
emake GHCUP=ghcup ARTIFACT="${ARTIFACT}" GHCS="${GHCS}" bindist
emake GHCUP=ghcup ARTIFACT="${ARTIFACT}" bindist-tar
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -438,11 +438,10 @@ jobs:
path: ./

- name: Create bindist
# we need reverse sorting, so that the wrapper binary comes from the oldest GHC always
run: |
set -eux
for bindist in $(find . -mindepth 1 -maxdepth 1 -type f -name 'out-*.tar' -print | sort -r) ; do
tar --overwrite -xf "${bindist}"
for bindist in out-*.tar ; do
tar -xf "${bindist}"
done
unset bindist
bash .github/scripts/bindist.sh
Expand Down

0 comments on commit 3a5d5de

Please sign in to comment.