Skip to content

Commit 0be0718

Browse files
authored
ci: resolve disk space error on GitHub Actions runners (#54)
Fix: Resolve disk space error "ENOSPC: no space left on device" on GitHub Actions runners
1 parent 6a0e6a3 commit 0be0718

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ jobs:
8080
- name: Install dependencies
8181
run: pnpm install
8282

83+
# Fix: Resolve disk space error "ENOSPC: no space left on device" on GitHub Actions runners
84+
- name: Free disk cache
85+
if: ${{ runner.environment == 'github-hosted' && inputs.target == 'x86_64-unknown-linux-gnu' }}
86+
uses: xc2/free-disk-space@fbe203b3788f2bebe2c835a15925da303eaa5efe # v1.0.0
87+
with:
88+
tool-cache: false
89+
8390
- name: Get NAPI info
8491
id: napi-info
8592
uses: rspack-contrib/rspack-toolchain/get-napi-info@v1

0 commit comments

Comments
 (0)