Skip to content

Commit ad517b3

Browse files
Copilot0xrinegade
andcommitted
Fix CI workflow issues: add --break-system-packages for pip and retry logic for yarn install
Co-authored-by: 0xrinegade <[email protected]>
1 parent 8bb21d8 commit ad517b3

File tree

6 files changed

+53
-14
lines changed

6 files changed

+53
-14
lines changed

.github/workflows/build-all-platforms.yml

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ jobs:
2222
cache: 'yarn'
2323

2424
- name: Install dependencies
25-
run: yarn install --frozen-lockfile
25+
run: |
26+
for i in 1 2 3; do
27+
yarn install --frozen-lockfile && break || sleep 10
28+
done
2629
2730
- name: Build web application
2831
run: ./scripts/build-web.sh
@@ -48,7 +51,10 @@ jobs:
4851
cache: 'yarn'
4952

5053
- name: Install dependencies
51-
run: yarn install --frozen-lockfile
54+
run: |
55+
for i in 1 2 3; do
56+
yarn install --frozen-lockfile && break || sleep 10
57+
done
5258
5359
- name: Build browser extensions
5460
run: ./scripts/build-extensions.sh
@@ -82,7 +88,10 @@ jobs:
8288
java-version: '17'
8389

8490
- name: Install dependencies
85-
run: yarn install --frozen-lockfile
91+
run: |
92+
for i in 1 2 3; do
93+
yarn install --frozen-lockfile && break || sleep 10
94+
done
8695
8796
- name: Build mobile applications
8897
run: ./scripts/build-mobile.sh
@@ -115,7 +124,10 @@ jobs:
115124
sudo apt-get install -y libnss3-dev libatk-bridge2.0-dev libdrm2 libxkbcommon-dev libgtk-3-dev libgbm-dev libasound2-dev rpm fakeroot dpkg
116125
117126
- name: Install dependencies
118-
run: yarn install --frozen-lockfile
127+
run: |
128+
for i in 1 2 3; do
129+
yarn install --frozen-lockfile && break || sleep 10
130+
done
119131
120132
- name: Build web application
121133
run: yarn build
@@ -145,7 +157,10 @@ jobs:
145157
cache: 'yarn'
146158

147159
- name: Install dependencies
148-
run: yarn install --frozen-lockfile
160+
run: |
161+
for i in 1 2 3; do
162+
yarn install --frozen-lockfile && break || sleep 10
163+
done
149164
150165
- name: Build web application
151166
run: yarn build
@@ -176,7 +191,10 @@ jobs:
176191
cache: 'yarn'
177192

178193
- name: Install dependencies
179-
run: yarn install --frozen-lockfile
194+
run: |
195+
for i in 1 2 3; do
196+
yarn install --frozen-lockfile && break || sleep 10
197+
done
180198
181199
- name: Build web application
182200
run: yarn build
@@ -212,7 +230,10 @@ jobs:
212230
java-version: '17'
213231

214232
- name: Install dependencies
215-
run: yarn install --frozen-lockfile
233+
run: |
234+
for i in 1 2 3; do
235+
yarn install --frozen-lockfile && break || sleep 10
236+
done
216237
217238
- name: Build all platforms
218239
run: ./scripts/build-all-platforms.sh
@@ -250,7 +271,10 @@ jobs:
250271
cache: 'yarn'
251272

252273
- name: Install dependencies
253-
run: yarn install --frozen-lockfile
274+
run: |
275+
for i in 1 2 3; do
276+
yarn install --frozen-lockfile && break || sleep 10
277+
done
254278
255279
- name: Run tests
256280
run: yarn test --watchAll=false --coverage

.github/workflows/build-android.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ jobs:
3838
${{ runner.os }}-yarn-
3939
4040
- name: Install dependencies
41-
run: yarn install --frozen-lockfile
41+
run: |
42+
for i in 1 2 3; do
43+
yarn install --frozen-lockfile && break || sleep 10
44+
done
4245
4346
- name: Build web application
4447
run: yarn build

.github/workflows/build-linux-native.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ jobs:
5959
alien
6060
6161
- name: Install dependencies
62-
run: yarn install --frozen-lockfile
62+
run: |
63+
for i in 1 2 3; do
64+
yarn install --frozen-lockfile && break || sleep 10
65+
done
6366
6467
- name: Build web application
6568
run: yarn build

.github/workflows/build-macos-native.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,13 @@ jobs:
4545
- name: Install Python distutils
4646
run: |
4747
python3 -m ensurepip --upgrade
48-
python3 -m pip install --upgrade pip setuptools
48+
python3 -m pip install --upgrade pip setuptools --break-system-packages
4949
5050
- name: Install dependencies
51-
run: yarn install --frozen-lockfile
51+
run: |
52+
for i in 1 2 3; do
53+
yarn install --frozen-lockfile && break || sleep 10
54+
done
5255
5356
- name: Build web application
5457
run: yarn build

.github/workflows/build-windows-native.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ jobs:
4343
${{ runner.os }}-yarn-
4444
4545
- name: Install dependencies
46-
run: yarn install --frozen-lockfile
46+
run: |
47+
for i in 1 2 3; do
48+
yarn install --frozen-lockfile && break || sleep 10
49+
done
4750
4851
- name: Build web application
4952
run: yarn build

.github/workflows/realnet-tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ jobs:
3838
${{ runner.os }}-yarn-
3939
4040
- name: Install dependencies
41-
run: yarn install --frozen-lockfile
41+
run: |
42+
for i in 1 2 3; do
43+
yarn install --frozen-lockfile && break || sleep 10
44+
done
4245
4346
- name: Build application
4447
run: yarn build

0 commit comments

Comments
 (0)