diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d78e0c68..1b0563d3e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,12 +38,10 @@ 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: @@ -51,6 +49,7 @@ jobs: 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 @@ -93,13 +92,11 @@ 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: @@ -107,6 +104,7 @@ jobs: 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 @@ -143,13 +141,11 @@ 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: @@ -157,6 +153,7 @@ jobs: 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 @@ -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 @@ -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