Skip to content

Commit

Permalink
Free up CI runner disk space before running UI tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanceriu committed Sep 10, 2024
1 parent 5394523 commit fde3bb5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ui_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
restore-keys: |
${{ runner.os }}-gems-
- name: Free disk space
run: ci_scripts/free_space.sh

- name: Setup environment
run: source ci_scripts/ci_common.sh && setup_github_actions_environment

Expand Down
15 changes: 15 additions & 0 deletions ci_scripts/free_space.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

#
# Taken from
# https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
#

set -ux

df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
df -h

0 comments on commit fde3bb5

Please sign in to comment.