Skip to content

Commit cf2c2ed

Browse files
committed
fix: resolve issues with linux space and macos cpu usage
1 parent d2ed6c6 commit cf2c2ed

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@ jobs:
2626
python_url: 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9+20240415-x86_64_v3-unknown-linux-gnu-install_only.tar.gz'
2727
pip_args: ${{ matrix.build.pip_args }} -r requirements.${{ matrix.build.type }}.txt
2828
steps:
29+
- name: Maximize build space
30+
uses: easimon/maximize-build-space@master
31+
with:
32+
root-reserve-mb: 512
33+
swap-size-mb: 1024
34+
remove-dotnet: 'true'
35+
remove-android: 'true'
36+
remove-android: 'true'
37+
remove-codeql: 'true'
38+
remove-docker-images: 'true'
39+
2940
- uses: actions/checkout@v4
3041

3142
- name: Cache Python Download
@@ -167,7 +178,7 @@ jobs:
167178
run: rm -rf python/lib/python3.11/site-packages/torch/include && rm -rf python/include && rm -rf python/share
168179

169180
- name: Build artifact
170-
run: cd python && tar -cf - * | zstd -9 -T0 > /tmp/${{ env.artifact_name }}
181+
run: cd python && tar -cf - * | zstd -9 -T1 > /tmp/${{ env.artifact_name }}
171182

172183
- name: Upload artifact
173184
uses: actions/upload-artifact@v4
@@ -219,7 +230,7 @@ jobs:
219230
run: rm -rf python/lib/python3.11/site-packages/torch/include && rm -rf python/include && rm -rf python/share
220231

221232
- name: Build artifact
222-
run: cd python && tar -cf - * | zstd -9 -T0 > /tmp/${{ env.artifact_name }}
233+
run: cd python && tar -cf - * | zstd -9 -T1 > /tmp/${{ env.artifact_name }}
223234

224235
- name: Upload artifact
225236
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)