Skip to content

Commit 3f9bc70

Browse files
committed
Maximize build space on runner
1 parent 7a16066 commit 3f9bc70

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/container-release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ env:
2323
PLATFORM: linux-amd64
2424
CONTAINER_VERSION: latest
2525
CONTAINER_LATEST_VERSION: latest
26+
CONTAINERS_ROOT: /home/runner/.local/share/containers
27+
TMPDIR: /home/runner/.local/share/containers/tmp
2628

2729
permissions:
2830
contents: read
@@ -44,6 +46,17 @@ jobs:
4446
- name: Install container tools
4547
run: sudo apt-get install podman buildah jq
4648

49+
- name: Maximize build space
50+
uses: easimon/maximize-build-space@v10
51+
with:
52+
root-reserve-mb: 2048 # Reserve disk space for repository
53+
remove-dotnet: "true"
54+
remove-android: "true"
55+
remove-haskell: "true"
56+
remove-codeql: "true"
57+
remove-docker-images: "true"
58+
build-mount-path: ${{ env.CONTAINERS_ROOT }} # The remaining space only for container build
59+
4760
- name: Prepare environment variables
4861
run: |
4962
echo "HOSTARCH=$(podman info --format='{{.Host.Arch}}')" >> $GITHUB_ENV

0 commit comments

Comments
 (0)