Skip to content

Commit

Permalink
clenaup ccache share
Browse files Browse the repository at this point in the history
  • Loading branch information
mryzhov committed Apr 5, 2024
1 parent 5ca08a7 commit d0c508f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: Cleanup PIP caches
name: Cleanup caches
on:
workflow_dispatch:
schedule:
# at 00:00 on the 1st day of every month
- cron: '0 0 1 * *'
# TODO: need to remove, only for debug:
pull_request:

jobs:
Cleanup_PIP_Caches:
Cleanup_PIP:
runs-on: aks-linux-2-cores-8gb
container:
image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04
Expand All @@ -30,3 +32,26 @@ jobs:
run: |
echo "Cache info: "
du -h -d2 ${PIP_CACHE_PATH}
Cleanup_CCACHE:
runs-on: aks-linux-2-cores-8gb
container:
image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04
volumes:
- /mount:/mount
env:
CCACHE_PATH: /mount/caches/ccache/ubuntu22_riscv64

steps:
- name: Checkout cach action
uses: actions/checkout@v4
with:
sparse-checkout: .github/actions/cache

- name: Cleanup ccache
uses: ./.github/actions/cache/cleanup
with:
cache-size: 10
max-cache-size: 50
cache-path: ${{ env.CCACHE_PATH }}
key: '*'
3 changes: 1 addition & 2 deletions .github/workflows/linux_riscv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,9 @@ jobs:
max-cache-size: 50
cache-path: ${{ env.CCACHE_REMOTE_DIR }}
path: ${{ env.CCACHE_DIR }}
key: ${{ runner.os }}-${{ runner.arch }}-${{ github.ref_name == 'master' && '' || github.event.number }}ccache-${{ github.sha }}
key: ${{ runner.os }}-${{ runner.arch }}-ccache-${{ github.sha }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-ccache
${{ runner.os }}-${{ runner.arch }}-${{ github.event.number }}ccache
- name: Init submodules for non-Conan dependencies
run: |
Expand Down

0 comments on commit d0c508f

Please sign in to comment.