Skip to content

Commit 1ac529e

Browse files
authored
build: optimize github action ci config (#760)
1 parent 6d7c409 commit 1ac529e

4 files changed

+8
-21
lines changed

.github/workflows/ikaros-server-ci.yml

-7
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,6 @@ jobs:
6464
java-version: 17
6565
- name: Install pnpm
6666
run: npm install -g pnpm
67-
- name: Cache pnpm store
68-
uses: actions/cache@v3
69-
with:
70-
path: ~/.pnpm-store
71-
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
72-
restore-keys: |
73-
${{ runner.os }}-pnpm-
7467
- name: Reduce pnpm concurrency
7568
run: pnpm config set fetch-retries 5 && pnpm config set fetch-timeout 60000 && pnpm config set max-concurrent-requests 6
7669
- name: Use npm mirror

.github/workflows/ikaros_ci_build_dev_container.yml

-7
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,6 @@ jobs:
3131
./gradlew clean
3232
- name: Install pnpm
3333
run: npm install -g pnpm
34-
- name: Cache pnpm store
35-
uses: actions/cache@v3
36-
with:
37-
path: ~/.pnpm-store
38-
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
39-
restore-keys: |
40-
${{ runner.os }}-pnpm-
4134
- name: Reduce pnpm concurrency
4235
run: pnpm config set fetch-retries 5 && pnpm config set fetch-timeout 60000 && pnpm config set max-concurrent-requests 6
4336
- name: Use npm mirror

.github/workflows/ikaros_ci_build_fastjar.yml

+8
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ jobs:
2525
distribution: 'temurin'
2626
cache: 'gradle'
2727
java-version: 17
28+
- name: Install pnpm
29+
run: npm install -g pnpm
30+
- name: Reduce pnpm concurrency
31+
run: pnpm config set fetch-retries 5 && pnpm config set fetch-timeout 60000 && pnpm config set max-concurrent-requests 6
32+
- name: Use npm mirror
33+
run: |
34+
npm config set registry https://registry.npmmirror.com
35+
pnpm config set registry https://registry.npmmirror.com
2836
- name: Make gradlew executable
2937
run: chmod +x ./gradlew
3038
- name: Clean with gradle

.github/workflows/ikaros_ci_build_tag_container.yml

-7
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,6 @@ jobs:
2929
./gradlew clean
3030
- name: Install pnpm
3131
run: npm install -g pnpm
32-
- name: Cache pnpm store
33-
uses: actions/cache@v3
34-
with:
35-
path: ~/.pnpm-store
36-
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
37-
restore-keys: |
38-
${{ runner.os }}-pnpm-
3932
- name: Reduce pnpm concurrency
4033
run: pnpm config set fetch-retries 5 && pnpm config set fetch-timeout 60000 && pnpm config set max-concurrent-requests 6
4134
- name: Use npm mirror

0 commit comments

Comments
 (0)