fix: linux not building x64
This commit is contained in:
9
.github/workflows/electron.yml
vendored
9
.github/workflows/electron.yml
vendored
@@ -154,17 +154,16 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
rm -f package-lock.json
|
# Retry npm ci up to 3 times on failure
|
||||||
# Retry npm install up to 3 times on failure
|
|
||||||
for i in 1 2 3; do
|
for i in 1 2 3; do
|
||||||
if npm install; then
|
if npm ci; then
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
if [ $i -eq 3 ]; then
|
if [ $i -eq 3 ]; then
|
||||||
echo "npm install failed after 3 attempts"
|
echo "npm ci failed after 3 attempts"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "npm install attempt $i failed, retrying in 10 seconds..."
|
echo "npm ci attempt $i failed, retrying in 10 seconds..."
|
||||||
sleep 10
|
sleep 10
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user