Skip to content

Commit 11700f3

Browse files
authored
Using tar sparse option
1 parent d7d7b84 commit 11700f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/validate.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ jobs:
122122
if [[ ${{ runner.os }} == 'Windows' ]]; then
123123
CABAL_EXEC=$(cygpath $CABAL_EXEC)
124124
fi
125-
tar -cvf cabal-head.tar -C $(dirname "$CABAL_EXEC") $(basename "$CABAL_EXEC")
125+
# Using sparse(-S) option to fix bad. binaries in macOS
126+
tar -Scvf cabal-head.tar -C $(dirname "$CABAL_EXEC") $(basename "$CABAL_EXEC")
126127
echo "CABAL_EXEC_TAR=cabal-head.tar" >> $GITHUB_ENV
127128
128129
# We upload the cabal executable built with the ghc used in the release for:

0 commit comments

Comments
 (0)