Skip to content

Commit 1d2f0db

Browse files
committed
fix: reduce file count
1 parent 45dc023 commit 1d2f0db

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,16 @@ jobs:
4444
id: cache-pip-packages
4545
with:
4646
path: ~/.cache/pip
47-
key: ${{ runner.os }}-${{ matrix.build.type }}-pip-packages
47+
key: ${{ runner.os }}-${{ matrix.build.type }}-pip-cache
4848

4949
- name: Extract Python
5050
run: tar -xzf python.tar.gz
5151

5252
- name: Install packages
53-
run: ./python/bin/python -m pip install ${{ env.pip_args }}
53+
run: ./python/bin/python -m pip install --no-compile ${{ env.pip_args }}
54+
55+
- name: Clean up
56+
run: rm -rf python/lib/python3.11/site-packages/torch/include && rm -rf python/include && rm -rf python/share
5457

5558
- name: Build artifact
5659
run: cd python && tar -cf - * | zstd -9 -T0 > /tmp/${{ env.artifact_name }}
@@ -100,13 +103,16 @@ jobs:
100103
id: cache-pip-packages
101104
with:
102105
path: ~\AppData\Local\pip\cache
103-
key: ${{ runner.os }}-${{ matrix.build.type }}-pip-packages
106+
key: ${{ runner.os }}-${{ matrix.build.type }}-pip-cache
104107

105108
- name: Extract Python
106109
run: tar -xzf python.tar.gz
107110

108111
- name: Install packages
109-
run: .\python\python.exe -m pip install ${{ env.pip_args }}
112+
run: .\python\python.exe -m pip install --no-compile ${{ env.pip_args }}
113+
114+
- name: Clean up
115+
run: rm -rf python/Lib/site-packages/torch/include && rm -rf python/include && rm -rf python/share
110116

111117
- name: Build artifact
112118
run: cd python && tar -cf - * | zstd -9 -T0 > C:\WINDOWS\Temp\${{ env.artifact_name }}
@@ -149,13 +155,16 @@ jobs:
149155
id: cache-pip-packages
150156
with:
151157
path: ~/Library/Caches/pip
152-
key: ${{ runner.os }}-${{ matrix.build.type }}-pip-packages
158+
key: ${{ runner.os }}-${{ matrix.build.type }}-pip-cache
153159

154160
- name: Extract Python
155161
run: tar -xzf python.tar.gz
156162

157163
- name: Install packages
158-
run: ./python/bin/python -m pip install ${{ env.pip_args }}
164+
run: ./python/bin/python -m pip install --no-compile ${{ env.pip_args }}
165+
166+
- name: Clean up
167+
run: rm -rf python/lib/python3.11/site-packages/torch/include && rm -rf python/include && rm -rf python/share
159168

160169
- name: Build artifact
161170
run: cd python && tar -cf - * | zstd -9 -T0 > /tmp/${{ env.artifact_name }}
@@ -198,13 +207,16 @@ jobs:
198207
id: cache-pip-packages
199208
with:
200209
path: ~/Library/Caches/pip
201-
key: ${{ runner.os }}-${{ matrix.build.type }}-pip-packages
210+
key: ${{ runner.os }}-${{ matrix.build.type }}-pip-cache
202211

203212
- name: Extract Python
204213
run: tar -xzf python.tar.gz
205214

206215
- name: Install packages
207-
run: ./python/bin/python -m pip install ${{ env.pip_args }}
216+
run: ./python/bin/python -m pip install --no-compile ${{ env.pip_args }}
217+
218+
- name: Clean up
219+
run: rm -rf python/lib/python3.11/site-packages/torch/include && rm -rf python/include && rm -rf python/share
208220

209221
- name: Build artifact
210222
run: cd python && tar -cf - * | zstd -9 -T0 > /tmp/${{ env.artifact_name }}

0 commit comments

Comments
 (0)