Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/common_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ jobs:
container_name: rockylinux:8
build: true
build_installer: true
need_deploy: false
qmake_extra: "CONFIG+=tests CONFIG+=noPch CONFIG+=ccache CONFIG+=sanitizer CONFIG+=sanitize-undefined CONFIG+=sanitize_address"
gcc_version: 13
trik_qt_version: 5.15
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/setup_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
required: false
type: boolean
default: false
need_deploy:
required: false
type: boolean
default: true
build:
required: true
type: boolean
Expand Down Expand Up @@ -175,6 +179,7 @@ jobs:
EXECUTOR: ${{ inputs.executor }}
BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
PULLREQUESTNUMBER: ${{ github.event.pull_request.number }}
NEED_DEPLOY: ${{ inputs.need_deploy }}
ssh_key: ${{ secrets.DL_PRIVATE_SSH_KEY }}
username: ${{ secrets.DL_USERNAME }}
host: ${{ secrets.DL_HOST }}
Expand Down
3 changes: 2 additions & 1 deletion buildScripts/github/build_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ case "$RUNNER_OS" in
esac
df -h .

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

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"
Expand Down
Loading