From 6a560f490a837d3f1b6b12be32d63585a93f63c0 Mon Sep 17 00:00:00 2001 From: Marcelo Bezerra <23555060+mmosca@users.noreply.github.com> Date: Tue, 19 Nov 2024 17:19:36 +0100 Subject: [PATCH 1/4] Try to remove folder that often already exists --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index daf34fc2e..d519cbfad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Remove stale files + run: rm -rfv node_modules - name: Setup environment env: ACTIONS_ALLOW_UNSECURE_COMMANDS: true @@ -72,6 +74,8 @@ jobs: runs-on: macos-13 steps: - uses: actions/checkout@v4 + - name: Remove stale files + run: rm -rfv node_modules - name: Setup environment env: ACTIONS_ALLOW_UNSECURE_COMMANDS: true @@ -120,6 +124,8 @@ jobs: runs-on: macos-13 steps: - uses: actions/checkout@v4 + - name: Remove stale files + run: rm -rfv node_modules - name: Setup environment env: ACTIONS_ALLOW_UNSECURE_COMMANDS: true From 77ed5ddc203483ce4641d311107743bab7d1fd50 Mon Sep 17 00:00:00 2001 From: Marcelo Bezerra <23555060+mmosca@users.noreply.github.com> Date: Tue, 19 Nov 2024 17:30:10 +0100 Subject: [PATCH 2/4] cleanup, second attempt --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d519cbfad..cb679751d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,8 +18,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Remove stale files - run: rm -rfv node_modules - name: Setup environment env: ACTIONS_ALLOW_UNSECURE_COMMANDS: true @@ -44,6 +42,8 @@ jobs: 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: @@ -74,8 +74,6 @@ jobs: runs-on: macos-13 steps: - uses: actions/checkout@v4 - - name: Remove stale files - run: rm -rfv node_modules - name: Setup environment env: ACTIONS_ALLOW_UNSECURE_COMMANDS: true @@ -100,6 +98,8 @@ jobs: # 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: @@ -124,8 +124,6 @@ jobs: runs-on: macos-13 steps: - uses: actions/checkout@v4 - - name: Remove stale files - run: rm -rfv node_modules - name: Setup environment env: ACTIONS_ALLOW_UNSECURE_COMMANDS: true @@ -150,6 +148,8 @@ jobs: # 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: From a80e387024f6efdf414c196210feb2a81f873650 Mon Sep 17 00:00:00 2001 From: Marcelo Bezerra <23555060+mmosca@users.noreply.github.com> Date: Tue, 19 Nov 2024 17:39:06 +0100 Subject: [PATCH 3/4] remove cache --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb679751d..2d78e0c68 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,7 +39,7 @@ jobs: with: node-version: 20 check-latest: true - cache: 'npm' + #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 @@ -94,12 +94,12 @@ jobs: with: node-version: 20 check-latest: true - cache: 'npm' + #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 + run: rm -rfv node_modules/???* - name: Install deps uses: nick-fields/retry@v3 with: @@ -144,7 +144,7 @@ jobs: with: node-version: 20 check-latest: true - cache: 'npm' + #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 @@ -197,7 +197,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 20 - cache: 'npm' + #cache: 'npm' - uses: engineerd/configurator@v0.0.10 with: name: "Wix Toolset 3.1.4" @@ -250,7 +250,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 20 - cache: 'npm' + #cache: 'npm' - uses: engineerd/configurator@v0.0.10 with: name: "Wix Toolset 3.1.4" From 0ae8820acfc3ed324c708c98d9a971b1e65d5c85 Mon Sep 17 00:00:00 2001 From: Marcelo Bezerra <23555060+mmosca@users.noreply.github.com> Date: Tue, 19 Nov 2024 17:55:25 +0100 Subject: [PATCH 4/4] on_retry_command --- .github/workflows/ci.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) 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