Skip to content

Commit 6420b59

Browse files
authored
[CI] cmake tar predownload (#73446)
* modify cmake wget * fix * predownload * add predownload * fix cmake download, no predownload * no predownload * add predownload * add predownload
1 parent 4ab7432 commit 6420b59

File tree

10 files changed

+325
-5
lines changed

10 files changed

+325
-5
lines changed

.github/workflows/Coverage.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
steps:
5555
- name: Check docker image and run container
5656
env:
57+
CACHE_DIR: "/root/.cache/coverage"
5758
CCACHE_DIR: "/root/.ccache/coverage"
5859
FLAGS_fraction_of_gpu_memory_to_use: 0.15
5960
CTEST_PARALLEL_LEVEL: 2
@@ -99,6 +100,7 @@ jobs:
99100
-e work_dir \
100101
-e PADDLE_ROOT \
101102
-e GIT_PR_ID \
103+
-e CACHE_DIR \
102104
-e CCACHE_DIR \
103105
-e ci_scripts \
104106
-e FLAGS_fraction_of_gpu_memory_to_use \
@@ -161,6 +163,7 @@ jobs:
161163
mkdir -p /home/data/cfs/.cache/coverage
162164
mkdir -p /home/data/cfs/.ccache/coverage
163165
source ${{ github.workspace }}/../../../proxy
166+
bash ${ci_scripts}/cmake-predownload.sh
164167
bash $ci_scripts/coverage_build.sh bdist_wheel
165168
'
166169

.github/workflows/_Distribute-stable.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ jobs:
164164
run: |
165165
docker exec -t ${{ env.container_name }} /bin/bash -c '
166166
source ${{ github.workspace }}/../../../proxy
167+
bash ${ci_scripts}/cmake-predownload.sh
167168
bash ${ci_scripts}/run_setup.sh bdist_wheel
168169
'
169170

.github/workflows/_Inference.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ jobs:
131131
run: |
132132
docker exec -t ${container_name} /bin/bash -c '
133133
source /action-runner/proxy
134+
bash ${ci_scripts}/cmake-predownload.sh
134135
bash ${ci_scripts}/inference_build.sh
135136
EXCODE=$?
136137
exit $EXCODE

.github/workflows/_Linux-CPU.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
CCACHE_MAXSIZE: 150G
4949
CCACHE_LIMIT_MULTIPLE: 0.8
5050
WITH_AVX: "OFF"
51+
CACHE_DIR: "/root/.cache/cpu"
5152
CCACHE_DIR: "/root/.ccache/cpu"
5253
run: |
5354
container_name=${TASK}-$(date +%Y%m%d-%H%M%S)
@@ -84,6 +85,7 @@ jobs:
8485
-e GITHUB_ENV \
8586
-e ci_scripts \
8687
-e WITH_AVX \
88+
-e CACHE_DIR \
8789
-e CCACHE_DIR \
8890
-e CI_name \
8991
-e no_proxy \
@@ -125,6 +127,7 @@ jobs:
125127
run: |
126128
docker exec -t ${{ env.container_name }} /bin/bash -c '
127129
source ${{ github.workspace }}/../../../proxy
130+
bash ${ci_scripts}/cmake-predownload.sh
128131
bash ${ci_scripts}/run_setup.sh bdist_wheel
129132
EXCODE=$?
130133
exit $EXCODE

.github/workflows/_Linux-XPU.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ jobs:
132132
run: |
133133
docker exec -t ${{ env.container_name }} /bin/bash -c '
134134
source ${{ github.workspace }}/../../../proxy
135+
bash ${ci_scripts}/cmake-predownload.sh
135136
apt install zstd -y
136137
bash ${ci_scripts}/run_setup.sh bdist_wheel
137138
EXCODE=$?

.github/workflows/_Linux-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ jobs:
154154
mkdir -p /root/.cache/build
155155
mkdir -p /root/.ccache/build
156156
source ${{ github.workspace }}/../../../proxy
157+
bash ${ci_scripts}/cmake-predownload.sh
157158
bash ${ci_scripts}/run_setup.sh bdist_wheel
158159
'
159160

.github/workflows/_SOT.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
CCACHE_MAXSIZE: 150G
5858
CCACHE_LIMIT_MULTIPLE: 0.8
5959
WITH_AVX: "OFF"
60+
CACHE_DIR: "/root/.cache/sot"
6061
CCACHE_DIR: "/root/.ccache/sot"
6162
run: |
6263
set -x
@@ -94,6 +95,7 @@ jobs:
9495
-e GITHUB_ENV \
9596
-e ci_scripts \
9697
-e WITH_AVX \
98+
-e CACHE_DIR \
9799
-e CCACHE_DIR \
98100
-e no_proxy \
99101
-w /paddle --network host ${docker_image}
@@ -139,6 +141,7 @@ jobs:
139141
docker exec -t ${{ env.container_name }} /bin/bash -c '
140142
export PY_VERSION=3.9
141143
source ${{ github.workspace }}/../../../proxy
144+
bash ${ci_scripts}/cmake-predownload.sh
142145
bash ${ci_scripts}/run_setup.sh bdist_wheel
143146
EXCODE=$?
144147
exit $EXCODE

0 commit comments

Comments
 (0)