Retrieve ~/.cabal-devx and ~/.cache from GHA cache in Codespaces (#154)

This commit is contained in:
Yvan Sraka 2024-04-16 10:33:56 +02:00 committed by GitHub
parent 30f0b9b7a9
commit 35d560306d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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