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

View File

@@ -26,6 +26,7 @@ runs:
steps: steps:
- name: Cache - name: Cache
uses: actions/cache@v3 uses: actions/cache@v3
if: inputs.pch != 'true'
with: with:
path: ${{ github.workspace }}/var/ccache path: ${{ github.workspace }}/var/ccache
# format # format
@@ -102,7 +103,7 @@ runs:
-DBUILD_TESTING="ON" \ -DBUILD_TESTING="ON" \
-DUSE_SCRIPTPCH=${{ inputs.pch == 'true' && 'ON' || '' }} \ -DUSE_SCRIPTPCH=${{ inputs.pch == 'true' && 'ON' || '' }} \
-DUSE_COREPCH=${{ inputs.pch == 'true' && 'ON' || '' }} \ -DUSE_COREPCH=${{ inputs.pch == 'true' && 'ON' || '' }} \
${{ !inputs.pch && '-DNOPCH=true' || '' }} ${{ inputs.pch == 'true' && '' || '-DNOPCH=true' }}
- name: build - name: build
shell: bash shell: bash