fix: sharp src/build/Release path + delete stale cache
This commit is contained in:
@@ -20,8 +20,8 @@ jobs:
|
|||||||
CACHE_FILE=/usr/local/git/.cache/sharp-freebsd/sharp-freebsd-x64-${SHARP_VER}.node
|
CACHE_FILE=/usr/local/git/.cache/sharp-freebsd/sharp-freebsd-x64-${SHARP_VER}.node
|
||||||
if [ -f "$CACHE_FILE" ]; then
|
if [ -f "$CACHE_FILE" ]; then
|
||||||
echo "Restoring cached sharp ${SHARP_VER}"
|
echo "Restoring cached sharp ${SHARP_VER}"
|
||||||
mkdir -p node_modules/sharp/build/Release
|
mkdir -p node_modules/sharp/src/build/Release
|
||||||
cp "$CACHE_FILE" node_modules/sharp/build/Release/sharp-freebsd-x64.node
|
cp "$CACHE_FILE" node_modules/sharp/src/build/Release/sharp-freebsd-x64.node
|
||||||
else
|
else
|
||||||
echo "Building sharp ${SHARP_VER} from source..."
|
echo "Building sharp ${SHARP_VER} from source..."
|
||||||
npm install node-addon-api node-gyp
|
npm install node-addon-api node-gyp
|
||||||
|
|||||||
Reference in New Issue
Block a user