fix(CI): Don't cache pch builds (#18674)

This commit is contained in:
Mike Delago 2024-04-05 11:38:11 -04:00 committed by GitHub
parent f7f1952f4b
commit 90cef46e6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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