Skip to content

Commit

Permalink
Fail if no installer found for test
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov committed Jan 27, 2025
1 parent 38df242 commit eb87e4b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions buildScripts/github/build_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ set -euxo pipefail
BRANCH_NAME="${BRANCH_NAME:-${GITHUB_REF#refs/*/}}"
BRANCH_NAME=${BRANCH_NAME//\//-}

QTBIN=${QTBIN:-$($EXECUTOR bash -c 'eval $(make qmake -n | cut -f 1 -d " ") -query QT_INSTALL_BINS')}
case $RUNNER_OS in
QTBIN="${QTBIN:-$($EXECUTOR bash -c 'eval $(make qmake -n | cut -f 1 -d " ") -query QT_INSTALL_BINS')}"
case "$RUNNER_OS" in
macOS)
QTIFWBIN=$HOME/qtifw/bin
QTIFWBIN="$HOME"/qtifw/bin
TSNAME="trik-studio-installer-mac-$BRANCH_NAME.dmg"
;;
Linux)
Expand All @@ -19,23 +19,23 @@ df -h .

NEED_DEPLOY=$([[ "$GITHUB_REPOSITORY" == "trikset/trik-studio" && "${PULLREQUESTNUMBER:-false}" == "false" ]] && echo true || echo false )

if $NEED_DEPLOY ; then
if "$NEED_DEPLOY" ; then
$EXECUTOR bash -c "mkdir -p $HOME/.ssh && install -m 600 /dev/null $HOME/.ssh/id_rsa && echo \"$ssh_key\" > $HOME/.ssh/id_rsa"
fi

if [[ $RUNNER_OS == Linux ]] ; then
if [[ "$RUNNER_OS" == Linux ]] ; then
echo Start build checker archive
$EXECUTOR bash -c "bin/build-checker-installer.sh"
if $NEED_DEPLOY ; then
if "$NEED_DEPLOY" ; then
$EXECUTOR bash -c "rsync -v --rsh='ssh -o StrictHostKeyChecking=no -vvv -i $HOME/.ssh/id_rsa' bin/trik_checker.tar.xz $username@$host:~/dl/ts/fresh/checker/checker-linux-$CONFIG-$BRANCH_NAME.tar.xz"
fi
fi

echo Start build installer
$EXECUTOR bash -c "installer/build-trik-studio.sh $QTBIN $QTIFWBIN ."

INSTALLER_NAME=$(find installer -name "trik-studio*installer*" -print -quit)
INSTALLER_NAME=$(find installer -name "trik-studio*installer*" -print -quit | grep . )

if $NEED_DEPLOY ; then
if "$NEED_DEPLOY" ; then
$EXECUTOR bash -c "rsync -v --rsh='ssh -o StrictHostKeyChecking=no -vvv -i $HOME/.ssh/id_rsa' $INSTALLER_NAME $username@$host:~/dl/ts/fresh/installer/$TSNAME"
fi

0 comments on commit eb87e4b

Please sign in to comment.