diff options
author | txtsd <thexerothermicsclerodermoid@gmail.com> | 2022-04-30 20:42:11 +0530 |
---|---|---|
committer | txtsd <thexerothermicsclerodermoid@gmail.com> | 2022-05-01 00:34:37 +0530 |
commit | 239e4adf29e1190096a82ec81a8f29ff8ebf5713 (patch) | |
tree | 8d5aad510a94528d7bd24774995d8f4cc7ab211b | |
parent | ece5ca52b211baf4505d113b7ad8f2c939e95c51 (diff) | |
download | PrismLauncher-239e4adf29e1190096a82ec81a8f29ff8ebf5713.tar.gz PrismLauncher-239e4adf29e1190096a82ec81a8f29ff8ebf5713.tar.bz2 PrismLauncher-239e4adf29e1190096a82ec81a8f29ff8ebf5713.zip |
refactor(workflow): Only use ccache on Debug builds
-rw-r--r-- | .github/workflows/build.yml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 042ef27c..0590b348 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,13 +65,13 @@ jobs: ccache:p - name: Setup ccache - if: runner.os != 'Windows' + if: runner.os != 'Windows' && inputs.build_type == 'Debug' uses: hendrikmuhs/ccache-action@v1.2.1 with: - key: ${{ matrix.os }}-${{ matrix.appimage }}-${{ inputs.build_type }} + key: ${{ matrix.os }}-${{ matrix.appimage }} - name: Setup ccache (Windows) - if: runner.os == 'Windows' + if: runner.os == 'Windows' && inputs.build_type == 'Debug' shell: msys2 {0} run: | ccache --set-config=cache_dir='${{ github.workspace }}\.ccache' @@ -81,13 +81,13 @@ jobs: ccache -z # Zero stats - name: Retrieve ccache cache (Windows) - if: runner.os == 'Windows' + if: runner.os == 'Windows' && inputs.build_type == 'Debug' uses: actions/cache@v3.0.2 with: path: '${{ github.workspace }}\.ccache' - key: ${{ matrix.os }}-${{ matrix.msystem }}-${{ inputs.build_type }} + key: ${{ matrix.os }}-${{ matrix.msystem }} restore-keys: | - ${{ matrix.os }}-${{ matrix.msystem }}-${{ inputs.build_type }} + ${{ matrix.os }}-${{ matrix.msystem }} - name: Set short version shell: bash |