Skip to content

Commit 75cfc81

Browse files
committed
fix: remove unnecessary packages and try to increase linux space
1 parent 9f9f9f7 commit 75cfc81

File tree

2 files changed

+23
-16
lines changed

2 files changed

+23
-16
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,28 @@ 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-haskell: 'true'
37-
remove-codeql: 'true'
38-
remove-docker-images: 'true'
29+
- name: Check disk space
30+
run: df -h
31+
32+
- name: Remove unnecessary files
33+
run: |
34+
sudo rm -rf \
35+
"$AGENT_TOOLSDIRECTORY" \
36+
/opt/google/chrome \
37+
/opt/microsoft/msedge \
38+
/opt/microsoft/powershell \
39+
/opt/pipx \
40+
/usr/lib/mono \
41+
/usr/local/julia* \
42+
/usr/local/lib/android \
43+
/usr/local/lib/node_modules \
44+
/usr/local/share/chromium \
45+
/usr/local/share/powershell \
46+
/usr/share/dotnet \
47+
/usr/share/swift
48+
49+
- name: Check disk space
50+
run: df -h
3951

4052
- uses: actions/checkout@v4
4153

requirements.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,5 @@ scipy
88
tqdm
99
psutil
1010
transformers>=4.28.1
11-
segment_anything
12-
yapf
13-
addict
14-
timm
1511
spandrel
16-
sentencepiece
17-
accelerate
12+
sentencepiece

0 commit comments

Comments
 (0)