refactor(workflow): Only use ccache on Debug builds
This commit is contained in:
parent
ece5ca52b2
commit
239e4adf29
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@ -65,13 +65,13 @@ jobs:
|
|||||||
ccache:p
|
ccache:p
|
||||||
|
|
||||||
- name: Setup ccache
|
- name: Setup ccache
|
||||||
if: runner.os != 'Windows'
|
if: runner.os != 'Windows' && inputs.build_type == 'Debug'
|
||||||
uses: hendrikmuhs/ccache-action@v1.2.1
|
uses: hendrikmuhs/ccache-action@v1.2.1
|
||||||
with:
|
with:
|
||||||
key: ${{ matrix.os }}-${{ matrix.appimage }}-${{ inputs.build_type }}
|
key: ${{ matrix.os }}-${{ matrix.appimage }}
|
||||||
|
|
||||||
- name: Setup ccache (Windows)
|
- name: Setup ccache (Windows)
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows' && inputs.build_type == 'Debug'
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
run: |
|
run: |
|
||||||
ccache --set-config=cache_dir='${{ github.workspace }}\.ccache'
|
ccache --set-config=cache_dir='${{ github.workspace }}\.ccache'
|
||||||
@ -81,13 +81,13 @@ jobs:
|
|||||||
ccache -z # Zero stats
|
ccache -z # Zero stats
|
||||||
|
|
||||||
- name: Retrieve ccache cache (Windows)
|
- name: Retrieve ccache cache (Windows)
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows' && inputs.build_type == 'Debug'
|
||||||
uses: actions/cache@v3.0.2
|
uses: actions/cache@v3.0.2
|
||||||
with:
|
with:
|
||||||
path: '${{ github.workspace }}\.ccache'
|
path: '${{ github.workspace }}\.ccache'
|
||||||
key: ${{ matrix.os }}-${{ matrix.msystem }}-${{ inputs.build_type }}
|
key: ${{ matrix.os }}-${{ matrix.msystem }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ matrix.os }}-${{ matrix.msystem }}-${{ inputs.build_type }}
|
${{ matrix.os }}-${{ matrix.msystem }}
|
||||||
|
|
||||||
- name: Set short version
|
- name: Set short version
|
||||||
shell: bash
|
shell: bash
|
||||||
|
Loading…
Reference in New Issue
Block a user