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>
This commit is contained in:
Cristian Adam
2021-09-20 12:52:32 +02:00
parent 24e3cb3ab9
commit 3c41665b80

View File

@@ -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