From 90cef46e6c243f5fffbebe4d15612905acbc5ed5 Mon Sep 17 00:00:00 2001 From: Mike Delago <32778141+michaeldelago@users.noreply.github.com> Date: Fri, 5 Apr 2024 11:38:11 -0400 Subject: [PATCH] fix(CI): Don't cache pch builds (#18674) --- .github/actions/linux-build/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/linux-build/action.yml b/.github/actions/linux-build/action.yml index 3a8fefd77..9a7ca0612 100644 --- a/.github/actions/linux-build/action.yml +++ b/.github/actions/linux-build/action.yml @@ -26,6 +26,7 @@ runs: steps: - name: Cache uses: actions/cache@v3 + if: inputs.pch != 'true' with: path: ${{ github.workspace }}/var/ccache # format @@ -102,7 +103,7 @@ runs: -DBUILD_TESTING="ON" \ -DUSE_SCRIPTPCH=${{ inputs.pch == 'true' && 'ON' || '' }} \ -DUSE_COREPCH=${{ inputs.pch == 'true' && 'ON' || '' }} \ - ${{ !inputs.pch && '-DNOPCH=true' || '' }} + ${{ inputs.pch == 'true' && '' || '-DNOPCH=true' }} - name: build shell: bash