Skip to content

Commit 5fa271f

Browse files
committed
Clear space if it's github hosted runner
1 parent 27d80f2 commit 5fa271f

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/build_linux_runfile_installer.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,23 @@ jobs:
107107
steps:
108108
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
109109

110-
- name: Get space
110+
- name: Get space (before)
111111
run: df -h
112+
113+
- name: Free disk space
114+
if: ${{ runner.environment == 'github-hosted' }}
115+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be
116+
with:
117+
tool-cache: false
118+
android: true
119+
dotnet: true
120+
haskell: true
121+
large-packages: true
122+
swap-storage: true
123+
124+
- name: Get space (after)
125+
run: df -h
126+
112127
- name: Set ROCM_VERSION
113128
run: |
114129
ROCM_VERSION=$(echo "${{ inputs.rocm_version }}" | cut -d'~' -f1)

0 commit comments

Comments
 (0)