From 89a4fa4d24636afbb45da83273e3915e2d9dd6ad Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Fri, 26 Jul 2024 10:26:58 -0600 Subject: [PATCH] CI: Only run clang plugins workflow on pushes to master Enabling the plugins makes the job take ~1h even for small changes. --- .github/workflows/lagom-template.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lagom-template.yml b/.github/workflows/lagom-template.yml index 82d295387a0..482b82126a5 100644 --- a/.github/workflows/lagom-template.yml +++ b/.github/workflows/lagom-template.yml @@ -67,7 +67,11 @@ jobs: if ${{ inputs.toolchain == 'Clang' }} ; then echo "host_cc=clang-18" >> "$GITHUB_OUTPUT" echo "host_cxx=clang++-18" >> "$GITHUB_OUTPUT" - echo "extra_cmake_options=-DENABLE_CLANG_PLUGINS=ON" >> "$GITHUB_OUTPUT" + if ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} ; then + echo "extra_cmake_options=-DENABLE_CLANG_PLUGINS=ON" >> "$GITHUB_OUTPUT" + else + echo "extra_cmake_options=" >> "$GITHUB_OUTPUT" + fi elif ${{ inputs.toolchain == 'GNU' }} ; then echo "host_cc=gcc-13" >> "$GITHUB_OUTPUT" echo "host_cxx=g++-13" >> "$GITHUB_OUTPUT"