Skip to content

Commit

Permalink
CI: more disk space on public runner
Browse files Browse the repository at this point in the history
  • Loading branch information
sveitser committed Aug 28, 2024
1 parent 27406d7 commit ff98738
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/espresso-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,22 @@ jobs:
runs-on: ${{ matrix.runs-on }}

steps:
# TODO We should be able to remove this but currently it's needed to avoid
# permission errors during checkout.
- name: Fix submodule permissions check
# Make more disk space available on public runner
- name: Maximize build space
uses: easimon/maximize-build-space@master
if: matrix.runs-on == ubuntu-latest
with:
root-reserve-mb: 512
swap-size-mb: 1024
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'

- name: Check free space
run: |
sudo chown -R runner:runner .
# Remove potentially leftover files from last run, it's unclear why
# this only works with `sudo` despite the chown command above.
sudo rm -rfv ./target
echo "Free space:"
df -h
- name: Fix submodule permissions check
run: |
git config --global --add safe.directory '*'
Expand Down

0 comments on commit ff98738

Please sign in to comment.