Skip to content

Commit

Permalink
Free up storage in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Sivanantham Chinnaiyan <[email protected]>
  • Loading branch information
sivanantha321 committed Feb 5, 2024
1 parent 6f4b7a9 commit 68554b6
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/actions/free-up-disk-space/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,19 @@ runs:
docker image prune -a -f
docker system df
df -h
- name: Free space using action easimon/maximize-build-space@master
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 512
swap-size-mb: 1024
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'

- name: Free space
shell: bash
run: |
df -Th
2 changes: 1 addition & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [master, release*]
paths:
- "**"
- "!.github/**"
# - "!.github/**"
- "!docs/**"
- "!**.md"
- ".github/workflows/e2e-test.yml"
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/freeup-space.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Free up storage space

on:
pull_request:

jobs:
freeup-storage:
runs-on: ubuntu-latest
steps:
- name: Before cleanup
run: |
df -Th
- name: checkout
uses: actions/checkout@v4

- name: free up storage
uses: ./github/actions/free-up-disk-space

- name: After cleanup
run: |
sf -Th

0 comments on commit 68554b6

Please sign in to comment.