forked from magma/magma
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Create composite action for maximizing the build space (magma#13341)
Signed-off-by: Lars Kreutzer <lars.kreutzer@tngtech.com>
- Loading branch information
Showing
4 changed files
with
31 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
.github/workflows/composite/maximize-build-space/action.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
name: maximize-build-space | ||
description: Maximize build space on Github runner | ||
# This local action is simpler than existing external | ||
# actions that try to clean up the Github runner. | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Maximize build space | ||
shell: bash | ||
run: | | ||
echo "Available storage before:" | ||
df -h --total | ||
echo "Removing /usr/share/dotnet, /usr/local/lib/android, /opt/ghc" | ||
sudo rm -rf \ | ||
/usr/share/dotnet \ | ||
/usr/local/lib/android \ | ||
/opt/ghc | ||
echo "Available storage after:" | ||
df -h --total |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters