Skip to content

Commit

Permalink
release: use higher compression
Browse files Browse the repository at this point in the history
  • Loading branch information
mtzguido committed Jan 11, 2025
1 parent d57a0c6 commit cac389a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
echo FSTAR_VERSION="nightly-$(date -I)" >> $GITHUB_ENV
elif [[ "${{github.workflow_ref}}" =~ "release.yml" ]]; then
echo FSTAR_VERSION="$(cat version.txt)" >> $GITHUB_ENV
echo FSTAR_RELEASE=1 >> $GITHUB_ENV
fi
# NB: release workflow later adds version number to the name
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
echo FSTAR_VERSION="nightly-$(date -I)" >> $GITHUB_ENV
elif [[ "${{github.workflow_ref}}" =~ "release.yml" ]]; then
echo FSTAR_VERSION="$(cat version.txt)" >> $GITHUB_ENV
echo FSTAR_RELEASE=1 >> $GITHUB_ENV
fi
# Note *g*make below!
Expand Down
10 changes: 7 additions & 3 deletions .scripts/mk-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ windows () {
[[ "${OS:-}" = "Windows_NT" ]]
}

release () {
[[ -n "${FSTAR_RELEASE:-}" ]]
}

# Computes a (hopefully) sensible default for the current system
detect_format () {
if windows; then
Expand Down Expand Up @@ -67,7 +71,7 @@ case $FSTAR_PACKAGE_FORMAT in
ATGT="$(realpath "$TGT")"
pushd "$PREFIX" >/dev/null
LEVEL=
if [ -v FSTAR_RELEASE ]; then
if release; then
LEVEL=-9
fi
$WRAP zip -q -r $LEVEL "$ATGT" .
Expand All @@ -77,7 +81,7 @@ case $FSTAR_PACKAGE_FORMAT in
TGT="$ARCHIVE.zip"
ATGT="$(realpath "$TGT")"
LEVEL=
if [ -v FSTAR_RELEASE ]; then
if release; then
LEVEL=-mx9
fi
pushd "$PREFIX" >/dev/null
Expand All @@ -89,7 +93,7 @@ case $FSTAR_PACKAGE_FORMAT in
TGT="$ARCHIVE.tar.gz"
$WRAP tar cf "$ARCHIVE.tar" -h -C "$PREFIX" .
LEVEL=
if [ -v FSTAR_RELEASE ]; then
if release; then
LEVEL=-9
fi
$WRAP gzip -f $LEVEL "$ARCHIVE.tar"
Expand Down

0 comments on commit cac389a

Please sign in to comment.