Skip to content

Commit 2d9b4e0

Browse files
committed
No need to deploy the version with sanitizers
1 parent 0715655 commit 2d9b4e0

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/common_build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ jobs:
140140
container_name: rockylinux:8
141141
build: true
142142
build_installer: true
143+
need_deploy: false
143144
qmake_extra: "CONFIG+=tests CONFIG+=noPch CONFIG+=ccache CONFIG+=sanitizer CONFIG+=sanitize-undefined CONFIG+=sanitize_address"
144145
gcc_version: 13
145146
trik_qt_version: 5.15

.github/workflows/setup_environment.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
required: false
1515
type: boolean
1616
default: false
17+
need_deploy:
18+
required: false
19+
type: boolean
20+
default: true
1721
build:
1822
required: true
1923
type: boolean
@@ -175,6 +179,7 @@ jobs:
175179
EXECUTOR: ${{ inputs.executor }}
176180
BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
177181
PULLREQUESTNUMBER: ${{ github.event.pull_request.number }}
182+
NEED_DEPLOY: ${{ inputs.need_deploy }}
178183
ssh_key: ${{ secrets.DL_PRIVATE_SSH_KEY }}
179184
username: ${{ secrets.DL_USERNAME }}
180185
host: ${{ secrets.DL_HOST }}

buildScripts/github/build_installer.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ case "$RUNNER_OS" in
1717
esac
1818
df -h .
1919

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

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

0 commit comments

Comments
 (0)