diff --git a/.github/workflows/build_installation_package.yaml b/.github/workflows/build_installation_package.yaml index 22cffc9..6628f6b 100644 --- a/.github/workflows/build_installation_package.yaml +++ b/.github/workflows/build_installation_package.yaml @@ -36,7 +36,7 @@ jobs: sed -Ei "s/DQMGUI\_GIT\_TAG=.+/DQMGUI\_GIT\_TAG=${DQMGUI_GIT_TAG}/" config.sh sed -Ei "s@DQMGUI\_GIT\_URL=.+@DQMGUI\_GIT\_URL=${DQMGUI_GIT_URL}@" config.sh sed -Ei "s/ROOT\_GIT\_TAG=.+/ROOT\_GIT\_TAG=${ROOT_GIT_TAG}/" config.sh - sed -Ei "s@ROOT\_GIT\_URL=.+@ROOT\_GIT\_URL=${ROOT_GIT_URL}@ config.sh + sed -Ei "s@ROOT\_GIT\_URL=.+@ROOT\_GIT\_URL=${ROOT_GIT_URL}@" config.sh bash download_dependencies.sh bash build_installation_package.sh TARGET_DIRECTORY="/tmp/dqmgui" ARCHIVE_NAME="dqmgui_$RELEASE_TAG.tar.gz" echo "Automatically generated release for making the installation package publicly available. diff --git a/build_installation_package.sh b/build_installation_package.sh index 1d79b71..1bbe28b 100644 --- a/build_installation_package.sh +++ b/build_installation_package.sh @@ -20,5 +20,11 @@ for ARGUMENT in "$@"; do eval "$KEY=$VALUE" done +# Check for piggiez +COMPRESSION_CMD="pigz --best" +if ! pigz --version >/dev/null 2>&1; then + COMPRESSION_CMD="gzip --best" +fi + mkdir -p "$TARGET_DIRECTORY" -tar -cf "$TARGET_DIRECTORY/$ARCHIVE_NAME" --exclude "$SOURCE_DIRECTORY/.git" --exclude "$SOURCE_DIRECTORY/.github" "$SOURCE_DIRECTORY" -I "pigz --best" +tar -cf "$TARGET_DIRECTORY/$ARCHIVE_NAME" --exclude "$SOURCE_DIRECTORY/.git" --exclude "$SOURCE_DIRECTORY/.github" "$SOURCE_DIRECTORY" -I "$COMPRESSION_CMD"