summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2021-11-30 11:35:09 +0100
committerCristian Adam <cristian.adam@qt.io>2021-11-30 12:06:19 +0000
commite6957808ec9aa7beed449656f5bdf3cf72db0ca2 (patch)
treee5d25bd260a14f8c99e865ec9d647b4a5288e653 /.github
parent7f1b2bda9dded73ca29bfd566d85d1bdd95b32bc (diff)
downloadqt-creator-e6957808ec9aa7beed449656f5bdf3cf72db0ca2.tar.gz
GitHub Actions: Build macOS dmg file only on release
The regular builds should be as fast as possible. Change-Id: I76b9ac009831192053f2163b1f73fb2183f3e791 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build_cmake.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml
index 19f4e25c82..d09b385b87 100644
--- a/.github/workflows/build_cmake.yml
+++ b/.github/workflows/build_cmake.yml
@@ -483,8 +483,10 @@ jobs:
string(REPLACE "x86" "x64" Python3_EXECUTABLE "${Python3_EXECUTABLE}")
set(WITH_TESTS "--with-tests")
+ set(NO_DMG "--no-dmg")
if (${{github.ref}} MATCHES "tags/v")
unset(WITH_TESTS)
+ unset(NO_DMG)
endif()
execute_process(
@@ -500,6 +502,7 @@ jobs:
${WITH_TESTS}
${CDB_OPTION}
${ELFUTILS_OPTION}
+ ${NO_DMG}
--add-config=-DCMAKE_C_COMPILER_LAUNCHER=ccache
--add-config=-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
--add-config=-DIDE_REVISION_URL=https://github.com/$ENV{GITHUB_REPOSITORY}/commits/$ENV{GITHUB_SHA}
@@ -588,7 +591,7 @@ jobs:
name: qtcreatorcdbext-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
- name: Upload disk image
- if: runner.os == 'macOS'
+ if: runner.os == 'macOS' && contains(github.ref, 'tags/v')
uses: actions/upload-artifact@v2
with:
path: build/qt-creator-${{ matrix.config.artifact }}-${{ github.run_id }}.dmg