Skip to content

Commit

Permalink
on_retry_command
Browse files Browse the repository at this point in the history
  • Loading branch information
mmosca committed Nov 19, 2024
1 parent a80e387 commit 0ae8820
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,18 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
check-latest: true
#check-latest: true
#cache: 'npm'
- name: Install dependencies
run: sudo apt-get update && sudo apt-get -y install dpkg fakeroot rpm build-essential libudev-dev
- name: Remove stale files
run: rm -rfv node_modules
- name: Install deps
uses: nick-fields/retry@v3
with:
max_attempts: 3
retry_on: error
command: npm install
timeout_minutes: 10
on_retry_command: rm -rfv node_modules
- name: Build Linux
run: npm run make
- name: Upload Linux deb
Expand Down Expand Up @@ -93,20 +92,19 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
check-latest: true
#check-latest: true
#cache: 'npm'
# Workaround due to a bug in node-gyp: https://github.com/electron/rebuild/issues/1116
- name: Install Setuptools
run: python3 -m pip install --break-system-packages setuptools
- name: Remove stale files
run: rm -rfv node_modules/???*
- name: Install deps
uses: nick-fields/retry@v3
with:
max_attempts: 3
retry_on: error
command: npm install
timeout_minutes: 10
on_retry_command: rm -rfv node_modules
- name: Build MacOS arm64
run: npm run make -- --arch="arm64"
- name: Upload MacOS arm64 zip
Expand Down Expand Up @@ -143,20 +141,19 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
check-latest: true
#check-latest: true
#cache: 'npm'
# Workaround due to a bug in node-gyp: https://github.com/electron/rebuild/issues/1116
- name: Install Setuptools
run: python3 -m pip install --break-system-packages setuptools
- name: Remove stale files
run: rm -rfv node_modules
- name: Install deps
uses: nick-fields/retry@v3
with:
max_attempts: 3
retry_on: error
command: npm install
timeout_minutes: 10
on_retry_command: rm -rfv node_modules
- name: Build MacOS x64
run: npm run make -- --arch="x64"
- name: Upload MacOS x64 zip
Expand Down Expand Up @@ -210,6 +207,7 @@ jobs:
retry_on: error
command: npm install
timeout_minutes: 10
on_retry_command: rm -rfv node_modules
- name: Build Win x64
run: npm run make -- --arch="x64"
- name: Upload Windows x64 zip
Expand Down Expand Up @@ -263,6 +261,7 @@ jobs:
retry_on: error
command: npm install
timeout_minutes: 10
on_retry_command: rm -rfv node_modules
- name: Build Win32
run: npm run make -- --arch="ia32"
- name: Upload Windows ia32 zip
Expand Down

0 comments on commit 0ae8820

Please sign in to comment.