Only cache on GHA, remove debugging

Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
This commit is contained in:
Hugo van Kemenade 2024-01-22 12:42:03 +02:00 committed by GitHub
parent 97d24f14a5
commit d96c196c48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,18 +19,20 @@ else
pushd $archive/imagequant-sys
time cargo install cargo-c
time cargo cinstall --prefix=/usr --destdir=.
cargo install cargo-c
cargo cinstall --prefix=/usr --destdir=.
# Copy into place
sudo cp usr/lib/libimagequant.so* /usr/lib/
sudo cp usr/include/libimagequant.h /usr/include/
# Copy to cache
rm -rf ~/cache-$archive_name
mkdir ~/cache-$archive_name
cp usr/lib/libimagequant.so* ~/cache-$archive_name/
cp usr/include/libimagequant.h ~/cache-$archive_name/
if [ -n "$GITHUB_ACTIONS" ]; then
# Copy to cache
rm -rf ~/cache-$archive_name
mkdir ~/cache-$archive_name
cp usr/lib/libimagequant.so* ~/cache-$archive_name/
cp usr/include/libimagequant.h ~/cache-$archive_name/
fi
popd