|
21 | 21 | node-version: 22 |
22 | 22 | cache: 'yarn' |
23 | 23 |
|
| 24 | + - name: Cache electron binaries |
| 25 | + uses: actions/cache@v4 |
| 26 | + with: |
| 27 | + path: ~/.cache/electron |
| 28 | + key: ${{ runner.os }}-electron-${{ hashFiles('**/yarn.lock') }} |
| 29 | + restore-keys: ${{ runner.os }}-electron- |
| 30 | + |
24 | 31 | - name: Install dependencies |
25 | | - run: yarn install --frozen-lockfile --ignore-engines |
| 32 | + run: | |
| 33 | + for i in 1 2 3; do |
| 34 | + echo "yarn install attempt $i" |
| 35 | + yarn install --frozen-lockfile --ignore-engines --network-timeout 100000 --network-concurrency 1 && break |
| 36 | + sleep 5 |
| 37 | + [ "$i" = "3" ] && exit 1 |
| 38 | + done |
26 | 39 |
|
27 | 40 | - name: Download IPFS |
28 | 41 | run: node electron/download-ipfs && chmod +x bin/linux/ipfs |
|
75 | 88 | # Use pip with --break-system-packages for CI environment |
76 | 89 | pip3 install --break-system-packages setuptools || pip3 install --user setuptools || true |
77 | 90 |
|
| 91 | + - name: Cache electron binaries |
| 92 | + uses: actions/cache@v4 |
| 93 | + with: |
| 94 | + path: ~/Library/Caches/electron |
| 95 | + key: ${{ runner.os }}-electron-${{ hashFiles('**/yarn.lock') }} |
| 96 | + restore-keys: ${{ runner.os }}-electron- |
| 97 | + |
78 | 98 | - name: Install dependencies |
79 | | - run: yarn install --frozen-lockfile --ignore-engines |
| 99 | + run: | |
| 100 | + for i in 1 2 3; do |
| 101 | + echo "yarn install attempt $i" |
| 102 | + yarn install --frozen-lockfile --ignore-engines --network-timeout 100000 --network-concurrency 1 && break |
| 103 | + sleep 5 |
| 104 | + [ "$i" = "3" ] && exit 1 |
| 105 | + done |
80 | 106 |
|
81 | 107 | - name: Download IPFS |
82 | 108 | run: node electron/download-ipfs && chmod +x bin/mac/ipfs |
@@ -135,8 +161,21 @@ jobs: |
135 | 161 | # Use pip with --break-system-packages for CI environment |
136 | 162 | pip3 install --break-system-packages setuptools || pip3 install --user setuptools || true |
137 | 163 |
|
| 164 | + - name: Cache electron binaries |
| 165 | + uses: actions/cache@v4 |
| 166 | + with: |
| 167 | + path: ~/Library/Caches/electron |
| 168 | + key: ${{ runner.os }}-electron-${{ hashFiles('**/yarn.lock') }} |
| 169 | + restore-keys: ${{ runner.os }}-electron- |
| 170 | + |
138 | 171 | - name: Install dependencies |
139 | | - run: yarn install --frozen-lockfile --ignore-engines |
| 172 | + run: | |
| 173 | + for i in 1 2 3; do |
| 174 | + echo "yarn install attempt $i" |
| 175 | + yarn install --frozen-lockfile --ignore-engines --network-timeout 100000 --network-concurrency 1 && break |
| 176 | + sleep 5 |
| 177 | + [ "$i" = "3" ] && exit 1 |
| 178 | + done |
140 | 179 |
|
141 | 180 | - name: Download IPFS |
142 | 181 | run: node electron/download-ipfs && chmod +x bin/mac/ipfs |
@@ -195,8 +234,22 @@ jobs: |
195 | 234 | node-version: 22 |
196 | 235 | cache: 'yarn' |
197 | 236 |
|
| 237 | + - name: Cache electron binaries |
| 238 | + uses: actions/cache@v4 |
| 239 | + with: |
| 240 | + path: ~/AppData/Local/electron/Cache |
| 241 | + key: ${{ runner.os }}-electron-${{ hashFiles('**/yarn.lock') }} |
| 242 | + restore-keys: ${{ runner.os }}-electron- |
| 243 | + |
198 | 244 | - name: Install dependencies |
199 | | - run: yarn install --frozen-lockfile --ignore-engines --network-timeout 100000 --network-concurrency 1 |
| 245 | + shell: bash |
| 246 | + run: | |
| 247 | + for i in 1 2 3; do |
| 248 | + echo "yarn install attempt $i" |
| 249 | + yarn install --frozen-lockfile --ignore-engines --network-timeout 100000 --network-concurrency 1 && break |
| 250 | + sleep 5 |
| 251 | + [ "$i" = "3" ] && exit 1 |
| 252 | + done |
200 | 253 |
|
201 | 254 | - name: Download IPFS |
202 | 255 | run: node electron/download-ipfs |
@@ -257,7 +310,13 @@ jobs: |
257 | 310 | java-version: '17' |
258 | 311 |
|
259 | 312 | - name: Install dependencies |
260 | | - run: yarn install --frozen-lockfile --ignore-engines |
| 313 | + run: | |
| 314 | + for i in 1 2 3; do |
| 315 | + echo "yarn install attempt $i" |
| 316 | + yarn install --frozen-lockfile --ignore-engines --network-timeout 100000 --network-concurrency 1 && break |
| 317 | + sleep 5 |
| 318 | + [ "$i" = "3" ] && exit 1 |
| 319 | + done |
261 | 320 |
|
262 | 321 | - name: Build React App |
263 | 322 | run: yarn build |
|
0 commit comments