Skip to content

Commit

Permalink
Debug cache
Browse files Browse the repository at this point in the history
  • Loading branch information
walkowif committed Apr 19, 2024
1 parent da5a77d commit 4524a03
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/revdepcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@ jobs:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
fetch-depth: 1

- name: Debug
run: |
echo "Home is at: $(echo ~)"
- name: Restore cache 💰
uses: actions/cache@v4
with:
key: revdepcheck-${{ runner.os }}-${{ github.event.repository.name }}
path: /github/home/.cache/R/pkgcache/pkg

- name: Check commit message 💬
run: |
git config --global --add safe.directory $(pwd)
Expand Down Expand Up @@ -88,14 +98,17 @@ jobs:
- name: Get cache
if: always()
run : |
crancache_path="$(R -q -e 'cat(crancache::get_cache_dir(), "\n")' 2>/dev/null | head -2 | tail -1 | tr -d ' ')"
crancache_path="$(R -q -e 'cat(normalizePath(crancache::get_cache_dir()), "\n")' 2>/dev/null | head -2 | tail -1 | tr -d ' ')"
pkgcache_path="$(R -q -e 'cat(pkgcache::pkg_cache_summary()$cachepath, "\n")' 2>/dev/null | head -2 | tail -1 | tr -d ' ')"
echo "crancache_path = $crancache_path"
echo "pkgcache_path = $pkgcache_path"
echo "crancache size:"
du -sh "$crancache_path" || true
echo "pkgcache size:"
du -sh "$pkgcache_path" || true
apt-get update && apt-get install -yq tree
echo "listing cache directory"
tree ~/.cache
shell: bash

- name: GChat notification 🔔
Expand Down

0 comments on commit 4524a03

Please sign in to comment.