Skip to content

Commit 1a20db7

Browse files
authored
fix: free space before archive build (#720)
1 parent f414157 commit 1a20db7

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/archive.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ jobs:
1414
runs-on: ubuntu-latest
1515
name: Build website
1616
steps:
17+
- name: Maximize build space
18+
run: |
19+
df -h
20+
sudo rm -rf /usr/share/dotnet
21+
sudo rm -rf /usr/local/lib/android
22+
sudo rm -rf /opt/ghc
23+
sudo rm -rf /opt/hostedtoolcache/CodeQL
24+
sudo docker image prune --all --force
25+
sudo docker builder prune --all --force
26+
df -h
27+
1728
- uses: actions/checkout@v5
1829
- uses: pnpm/action-setup@v4
1930
with:
@@ -55,6 +66,11 @@ jobs:
5566
restore-keys: |
5667
${{ runner.os }}-archive-gatsby-cache-docs-staging-
5768
69+
- name: Clean up temporary files
70+
run: |
71+
sudo rm -rf /tmp/*
72+
sudo rm -rf /home/runner/work/_temp/*
73+
5874
- name: Build website
5975
env:
6076
CI: true

0 commit comments

Comments
 (0)