Skip to content

Commit 795e135

Browse files
set ENV 'GITHUB_ACTIONS' on GitHub Actions Workflow
1 parent 93852d6 commit 795e135

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/qt5_6.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ jobs:
251251
- name: 👷 Build ${{ env.HINT }}
252252
shell: cmd
253253
run: |
254-
cmake --preset windows-${{ env.BUILD_TYPE }} -DGITHUB_ACTIONS ${{ steps.dependencies.outputs.cmakeArgs }}
254+
cmake --preset windows-${{ env.BUILD_TYPE }} ${{ steps.dependencies.outputs.cmakeArgs }}
255255
cmake --build --preset windows-${{ env.BUILD_TYPE }} --target package
256256
env:
257257
BUILD_TYPE: ${{ inputs.event_name == 'pull_request' && 'debug' || 'release' }}

libsrc/python/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,7 @@ target_compile_definitions(python PRIVATE
4747
PYTHON_VERSION_MAJOR=${PYTHON_VERSION_MAJOR}
4848
PYTHON_VERSION_MINOR=${PYTHON_VERSION_MINOR}
4949
)
50+
51+
if(DEFINED ENV{GITHUB_ACTIONS})
52+
target_compile_definitions(python PUBLIC GITHUB_ACTIONS)
53+
endif()

0 commit comments

Comments
 (0)