From 3c41665b809dce6cf5b0d469ba41c40e58b67475 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Mon, 20 Sep 2021 12:52:32 +0200 Subject: [PATCH] GitHub Actions: Do not build with tests on release tags This should match the official releases. Change-Id: I075e977121ffcaa32de37a9505be6c6296d7258d Reviewed-by: Eike Ziller --- .github/workflows/build_cmake.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index 4e9f6f8e146..d9408a98258 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