summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2021-09-20 12:52:32 +0200
committerCristian Adam <cristian.adam@qt.io>2021-09-20 12:38:14 +0000
commit3c41665b809dce6cf5b0d469ba41c40e58b67475 (patch)
treec1b5dcb4895aa5d10b404790812eb619a98e2eea /.github
parent24e3cb3ab959240daee275e7f704e9098b8c495d (diff)
downloadqt-creator-3c41665b809dce6cf5b0d469ba41c40e58b67475.tar.gz
GitHub Actions: Do not build with tests on release tags
This should match the official releases. Change-Id: I075e977121ffcaa32de37a9505be6c6296d7258d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build_cmake.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml
index 4e9f6f8e14..d9408a9825 100644
--- a/.github/workflows/build_cmake.yml
+++ b/.github/workflows/build_cmake.yml
@@ -455,6 +455,11 @@ jobs:
find_package(Python3 REQUIRED COMPONENTS Interpreter)
string(REPLACE "x86" "x64" Python3_EXECUTABLE "${Python3_EXECUTABLE}")
+ set(WITH_TESTS "--with-tests")
+ if (${{github.ref}} MATCHES "tags/v")
+ unset(WITH_TESTS)
+ endif()
+
execute_process(
COMMAND python
-u
@@ -465,7 +470,7 @@ jobs:
--qt-path "${{ steps.qt.outputs.qt_dir }}"
--llvm-path "${{ steps.libclang.outputs.libclang_dir }}"
--python3 "${Python3_EXECUTABLE}"
- --with-tests
+ ${WITH_TESTS}
${CDB_OPTION}
${ELFUTILS_OPTION}
--add-config=-DCMAKE_C_COMPILER_LAUNCHER=ccache