Skip to content

Commit

Permalink
(WIP) ENH: Add action to maximize build disk space
Browse files Browse the repository at this point in the history
Some images require more space to build. This action should maximize the
space. Also restarts the docker service after freeing up space
  • Loading branch information
meoflynn committed Nov 14, 2024
1 parent 2685aa4 commit 4a9494c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ jobs:
matrix:
image: ${{ fromJson(needs.setup.outputs.images) }}
steps:
- name: Maximize build space # free up space for building images
uses: easimon/maximize-build-space@v10
with:
root-reserve-mb: 512
swap-size-mb: 1024
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
build-mount-path: '/var/lib/docker/'
- name: Restart docker # restart the docker service
run: sudo service docker restart
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Login to DockerHub # increase pull rate limit
Expand Down

0 comments on commit 4a9494c

Please sign in to comment.