mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
feat(CI): enable caching for pch build (#23422)
This commit is contained in:
8
.github/actions/linux-build/action.yml
vendored
8
.github/actions/linux-build/action.yml
vendored
@@ -41,17 +41,15 @@ runs:
|
|||||||
steps:
|
steps:
|
||||||
- name: echo cache key
|
- name: echo cache key
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "Cache key -> ccache:${{ runner.os }}:${{ inputs.CC }}_${{ inputs.CXX }}:${{ inputs.modules }}:${{ github.ref_name }}"
|
run: echo "Cache key -> ccache:${{ runner.os }}:${{ inputs.CC }}_${{ inputs.CXX }}:${{ inputs.modules }}:pch=${{ inputs.pch }}:${{ github.ref_name }}"
|
||||||
|
|
||||||
- name: Cache
|
- name: Cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
if: inputs.pch != 'true'
|
|
||||||
with:
|
with:
|
||||||
path: ${{ github.workspace }}/var/ccache
|
path: ${{ github.workspace }}/var/ccache
|
||||||
# format
|
key: ccache:${{ runner.os }}:${{ inputs.CC }}_${{ inputs.CXX }}:${{ inputs.modules }}:pch=${{ inputs.pch }}:${{ github.ref_name }}
|
||||||
# ccache:OS:CC_CXX:MODULES:GITHUB_REF:GITHUB_SHA
|
|
||||||
key: ccache:${{ runner.os }}:${{ inputs.CC }}_${{ inputs.CXX }}:${{ inputs.modules }}:${{ github.ref_name }}
|
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
|
ccache:${{ runner.os }}:${{ inputs.CC }}_${{ inputs.CXX }}:${{ inputs.modules }}:pch=${{ inputs.pch }}
|
||||||
ccache:${{ runner.os }}:${{ inputs.CC }}_${{ inputs.CXX }}:${{ inputs.modules }}
|
ccache:${{ runner.os }}:${{ inputs.CC }}_${{ inputs.CXX }}:${{ inputs.modules }}
|
||||||
ccache:${{ runner.os }}:${{ inputs.CC }}_${{ inputs.CXX }}
|
ccache:${{ runner.os }}:${{ inputs.CC }}_${{ inputs.CXX }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user