forked from qt-creator/qt-creator
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:
7
.github/workflows/build_cmake.yml
vendored
7
.github/workflows/build_cmake.yml
vendored
@@ -455,6 +455,11 @@ jobs:
|
|||||||
find_package(Python3 REQUIRED COMPONENTS Interpreter)
|
find_package(Python3 REQUIRED COMPONENTS Interpreter)
|
||||||
string(REPLACE "x86" "x64" Python3_EXECUTABLE "${Python3_EXECUTABLE}")
|
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(
|
execute_process(
|
||||||
COMMAND python
|
COMMAND python
|
||||||
-u
|
-u
|
||||||
@@ -465,7 +470,7 @@ jobs:
|
|||||||
--qt-path "${{ steps.qt.outputs.qt_dir }}"
|
--qt-path "${{ steps.qt.outputs.qt_dir }}"
|
||||||
--llvm-path "${{ steps.libclang.outputs.libclang_dir }}"
|
--llvm-path "${{ steps.libclang.outputs.libclang_dir }}"
|
||||||
--python3 "${Python3_EXECUTABLE}"
|
--python3 "${Python3_EXECUTABLE}"
|
||||||
--with-tests
|
${WITH_TESTS}
|
||||||
${CDB_OPTION}
|
${CDB_OPTION}
|
||||||
${ELFUTILS_OPTION}
|
${ELFUTILS_OPTION}
|
||||||
--add-config=-DCMAKE_C_COMPILER_LAUNCHER=ccache
|
--add-config=-DCMAKE_C_COMPILER_LAUNCHER=ccache
|
||||||
|
Reference in New Issue
Block a user