Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/actions/free-disk-space/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 'Free Space'
description: 'Free up disk space by removing files and directories that are not needed for tests.'
runs:
using: 'composite'
steps:
- name: Free space
shell: bash
run: |
echo "Disk space before cleanup:"
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/share/az_*
sudo rm -rf /opt/az
sudo rm -rf /usr/lib/google-cloud-sdk
echo "Disk space after cleanup:"
df -h
10 changes: 8 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ jobs:
with:
username: hardcoreeng
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}

- name: Free space
uses: ./.github/actions/free-disk-space
- name: Docker Build
run: node common/scripts/install-run-rush.js docker
env:
Expand Down Expand Up @@ -371,7 +372,8 @@ jobs:
with:
username: hardcoreeng
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}

- name: Free space
uses: ./.github/actions/free-disk-space
- name: Docker Build
run: node common/scripts/install-run-rush.js docker
env:
Expand Down Expand Up @@ -467,6 +469,8 @@ jobs:
with:
username: hardcoreeng
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Free space
uses: ./.github/actions/free-disk-space
- name: Docker Build
run: node common/scripts/install-run-rush.js docker
env:
Expand Down Expand Up @@ -549,6 +553,8 @@ jobs:
with:
username: hardcoreeng
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Free space
uses: ./.github/actions/free-disk-space
- name: Docker Build
run: node common/scripts/install-run-rush.js docker
env:
Expand Down
Loading