Skip to content

Commit

Permalink
Retrieve ~/.cabal-devx and ~/.cache from GHA cache in Codespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
yvan-sraka committed Apr 16, 2024
1 parent 30f0b9b commit 506a6f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Expand Up @@ -52,7 +52,9 @@ if [ -n "\$PROJECT_DIR" ]; then
echo "Attempting to download HLS cache from GitHub Artifact (cache-\$COMMIT_HASH-$COMPILER_NIX_NAME) for faster first launch ..."
gh run download -D .download -n "cache-\$COMMIT_HASH-$COMPILER_NIX_NAME"
if [ -n .download ]; then
rsync -a .download/ dist-newstyle/
rsync -a .download/dist-newstyle dist-newstyle
rsync -a .download/.cabal-devx $HOME/.cabal-devx
rsync -a .download/.cache $HOME/.cache
rm -r .download
fi
else
Expand Down

0 comments on commit 506a6f7

Please sign in to comment.