Skip to content

Commit 5bbaa5f

Browse files
[WS-299] Add step to cleanup tools to save storage
1 parent 63ebbdc commit 5bbaa5f

1 file changed

Lines changed: 24 additions & 4 deletions

File tree

.github/workflows/smoke-test-cli.yaml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,26 @@ jobs:
4545
run: |
4646
df -h
4747
48+
- name: Free Disk Space (Ubuntu)
49+
uses: jlumbroso/free-disk-space@v1.3.1
50+
with:
51+
# this might remove tools that are actually needed,
52+
# if set to "true" but frees about 6 GB
53+
tool-cache: false
54+
55+
# all of these default to true, but feel free to set to
56+
# "false" if necessary for your workflow
57+
android: true
58+
dotnet: true
59+
haskell: true
60+
large-packages: true
61+
docker-images: true
62+
swap-storage: true
63+
64+
- name: Debug 2 - Check storage after removing tools
65+
run: |
66+
df -h
67+
4868
- name: Checkout Moonshot (Pull Request Review)
4969
if: github.event_name == 'pull_request_review'
5070
uses: actions/checkout@v4
@@ -64,7 +84,7 @@ jobs:
6484
with:
6585
python-version: '3.11'
6686

67-
- name: Debug 2 - Check storage before installing Moonshot dependencies
87+
- name: Debug 3 - Check storage before installing Moonshot dependencies
6888
run: |
6989
df -h
7090
@@ -77,7 +97,7 @@ jobs:
7797
echo "${{ secrets.ENVIRONMENT_VARS }}" >> .env
7898
pwd
7999
80-
- name: Debug 3 - Check storage before downloading Moonshot-data
100+
- name: Debug 4 - Check storage before downloading Moonshot-data
81101
run: |
82102
df -h
83103
@@ -97,7 +117,7 @@ jobs:
97117
ref: ${{ inputs.moonshot_data_branch }}
98118
path: moonshot-data
99119

100-
- name: Debug 4 - Check storage before installing Moonshot-data
120+
- name: Debug 5 - Check storage before installing Moonshot-data
101121
run: |
102122
df -h
103123
@@ -108,7 +128,7 @@ jobs:
108128
pip install -r requirements.txt
109129
pwd
110130
111-
- name: Debug 4 - Check storage after installing Moonshot-data
131+
- name: Debug 6 - Check storage after installing Moonshot-data
112132
if: failure() || always()
113133
run: |
114134
df -h

0 commit comments

Comments
 (0)