From a61a5dae16d8511b256e1d089964712eef977ccd Mon Sep 17 00:00:00 2001 From: ann0see <20726856+ann0see@users.noreply.github.com> Date: Thu, 14 Jul 2022 21:34:55 +0200 Subject: [PATCH] Autobuild: Avoid building release only builds on PR --- .github/workflows/autobuild.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index 7286e59c27..a03adca0a0 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -129,6 +129,7 @@ jobs: building_on_os: ubuntu-18.04 base_command: TARGET_ARCH=armhf ./.github/autobuild/linux_deb.sh run_codeql: false + build_release_only: true - config_name: MacOS (artifacts) target_os: macos @@ -146,6 +147,7 @@ jobs: # Disable CodeQL on mac as it interferes with signing the binaries (signing hangs, see #2563 and #2564) run_codeql: false xcode_version: 13.4.1 + build_release_only: true # Reminder: If Legacy is removed, be sure to add a dedicated job for CodeQL again. - config_name: MacOS Legacy (artifacts+CodeQL) @@ -182,8 +184,14 @@ jobs: building_on_os: windows-2022 base_command: powershell .\.github\autobuild\windows.ps1 -BuildOption jackonwindows -Stage run_codeql: false + build_release_only: true runs-on: ${{ matrix.config.building_on_os }} + # Only build release only artifacts on release + if: >- + matrix.config.build_release_only == 'true' && + needs.create_release.outputs.publish_to_release == 'true' + needs: create_release steps: - name: Select Xcode version for Mac if: matrix.config.target_os == 'macos' || matrix.config.target_os == 'ios'