Skip to content

Commit cac389a

Browse files
committed
release: use higher compression
1 parent d57a0c6 commit cac389a

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/build-linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
echo FSTAR_VERSION="nightly-$(date -I)" >> $GITHUB_ENV
3838
elif [[ "${{github.workflow_ref}}" =~ "release.yml" ]]; then
3939
echo FSTAR_VERSION="$(cat version.txt)" >> $GITHUB_ENV
40+
echo FSTAR_RELEASE=1 >> $GITHUB_ENV
4041
fi
4142
4243
# NB: release workflow later adds version number to the name

.github/workflows/build-macos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
echo FSTAR_VERSION="nightly-$(date -I)" >> $GITHUB_ENV
3030
elif [[ "${{github.workflow_ref}}" =~ "release.yml" ]]; then
3131
echo FSTAR_VERSION="$(cat version.txt)" >> $GITHUB_ENV
32+
echo FSTAR_RELEASE=1 >> $GITHUB_ENV
3233
fi
3334
3435
# Note *g*make below!

.scripts/mk-package.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ windows () {
3232
[[ "${OS:-}" = "Windows_NT" ]]
3333
}
3434

35+
release () {
36+
[[ -n "${FSTAR_RELEASE:-}" ]]
37+
}
38+
3539
# Computes a (hopefully) sensible default for the current system
3640
detect_format () {
3741
if windows; then
@@ -67,7 +71,7 @@ case $FSTAR_PACKAGE_FORMAT in
6771
ATGT="$(realpath "$TGT")"
6872
pushd "$PREFIX" >/dev/null
6973
LEVEL=
70-
if [ -v FSTAR_RELEASE ]; then
74+
if release; then
7175
LEVEL=-9
7276
fi
7377
$WRAP zip -q -r $LEVEL "$ATGT" .
@@ -77,7 +81,7 @@ case $FSTAR_PACKAGE_FORMAT in
7781
TGT="$ARCHIVE.zip"
7882
ATGT="$(realpath "$TGT")"
7983
LEVEL=
80-
if [ -v FSTAR_RELEASE ]; then
84+
if release; then
8185
LEVEL=-mx9
8286
fi
8387
pushd "$PREFIX" >/dev/null
@@ -89,7 +93,7 @@ case $FSTAR_PACKAGE_FORMAT in
8993
TGT="$ARCHIVE.tar.gz"
9094
$WRAP tar cf "$ARCHIVE.tar" -h -C "$PREFIX" .
9195
LEVEL=
92-
if [ -v FSTAR_RELEASE ]; then
96+
if release; then
9397
LEVEL=-9
9498
fi
9599
$WRAP gzip -f $LEVEL "$ARCHIVE.tar"

0 commit comments

Comments
 (0)