mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Only cache on GHA, remove debugging
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
This commit is contained in:
parent
97d24f14a5
commit
d96c196c48
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user