Skip to content

Commit

Permalink
Attempt to delete unnecessary files from the runner image on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaarsen committed Aug 23, 2024
1 parent 15997a1 commit 4b757a3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,26 @@ jobs:
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Remove unnecessary files
run: |
# Remove software and language runtimes we're not using
sudo rm -rf \
"$AGENT_TOOLSDIRECTORY" \
/opt/google/chrome \
/opt/microsoft/msedge \
/opt/microsoft/powershell \
/opt/pipx \
/usr/lib/mono \
/usr/local/julia* \
/usr/local/lib/android \
/usr/local/lib/node_modules \
/usr/local/share/chromium \
/usr/local/share/powershell \
/usr/share/dotnet \
/usr/share/swift
df -h /
if: runner.os == 'Linux'

- name: Checkout code
uses: actions/checkout@v3

Expand Down

0 comments on commit 4b757a3

Please sign in to comment.