Skip to content

Commit

Permalink
Only cache on GHA, remove debugging
Browse files Browse the repository at this point in the history
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
  • Loading branch information
hugovk and nulano committed Jan 22, 2024
1 parent 97d24f1 commit d96c196
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions depends/install_imagequant.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d96c196

Please sign in to comment.