Fix cache
This commit is contained in:
parent
efc809d166
commit
cd9537c9e7
30
.github/workflows/platform_natives.yaml
vendored
30
.github/workflows/platform_natives.yaml
vendored
@ -80,15 +80,35 @@ jobs:
|
|||||||
if: matrix.usedocker == 'true'
|
if: matrix.usedocker == 'true'
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: /tmp/.buildx-cache
|
||||||
/tmp/.buildx-cache
|
|
||||||
~/.cache
|
|
||||||
~/.ccache
|
|
||||||
~/tdlight-java-natives/tdlight-java-natives/.cache
|
|
||||||
key: ${{ runner.os }}-buildx-cache-${{ env.SAFE_ARCH }}-${{ github.sha }}
|
key: ${{ runner.os }}-buildx-cache-${{ env.SAFE_ARCH }}-${{ github.sha }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-buildx-cache-${{ env.SAFE_ARCH }}-
|
${{ runner.os }}-buildx-cache-${{ env.SAFE_ARCH }}-
|
||||||
|
|
||||||
|
- name: Cache Maven
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.m2/repository
|
||||||
|
key: ${{ runner.os }}-maven-${{ env.SAFE_ARCH }}-${{ hashFiles('**/pom.xml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-maven-${{ env.SAFE_ARCH }}-
|
||||||
|
|
||||||
|
- name: Cache packages cache
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/tdlight-java-natives/tdlight-java-natives/.cache
|
||||||
|
key: ${{ runner.os }}-maven-${{ env.SAFE_ARCH }}-${{ github.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-maven-${{ env.SAFE_ARCH }}-
|
||||||
|
|
||||||
|
- name: Cache ccache
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.ccache
|
||||||
|
key: ${{ runner.os }}-maven-${{ env.SAFE_ARCH }}-${{ github.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-maven-${{ env.SAFE_ARCH }}-
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
if: matrix.usedocker == 'true'
|
if: matrix.usedocker == 'true'
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
|
Loading…
Reference in New Issue
Block a user