Skip to content

Commit 90aae5a

Browse files
committed
Use ubuntu-latest GitHub Actions runner for Linux builds
A full build requires a lot of disk space. I believe this is mostly due to the large number of Docker images that the tests utilize. By default, the amount of free disk space on an ubuntu-latest runner does not meet or needs. In this commit, we work around this using the free-disk-space action which deletes things like the Android SDK and Haskell installations that are both large and not needed by our builds. Closes gh-40705
1 parent 1a1fa01 commit 90aae5a

File tree

6 files changed

+16
-5
lines changed

6 files changed

+16
-5
lines changed

.github/actions/prepare-gradle-build/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ inputs:
1212
runs:
1313
using: composite
1414
steps:
15+
- name: Free Disk Space
16+
if: ${{ runner.os == 'Linux' }}
17+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
18+
with:
19+
large-packages: false
20+
docker-images: false
1521
- name: Set Up Java
1622
uses: actions/setup-java@v4
1723
with:

.github/workflows/build-and-deploy-snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ concurrency:
88
jobs:
99
build-and-deploy-snapshot:
1010
name: Build and Deploy Snapshot
11-
runs-on: ubuntu22-8-32-OSS
11+
runs-on: ubuntu-latest
1212
if: ${{ github.repository == 'spring-projects/spring-boot' }}
1313
steps:
1414
- name: Check Out Code

.github/workflows/build-pull-request.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ permissions:
77
jobs:
88
build:
99
name: Build Pull Request
10-
runs-on: ubuntu22-8-32-OSS
10+
runs-on: ubuntu-latest
1111
if: ${{ github.repository == 'spring-projects/spring-boot' }}
1212
steps:
13+
- name: Free Disk Space
14+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
15+
with:
16+
large-packages: false
17+
docker-images: false
1318
- name: Set Up JDK 17
1419
uses: actions/setup-java@v4
1520
with:

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
os:
16-
- id: ubuntu22-8-32-OSS
16+
- id: ubuntu-latest
1717
name: Linux
1818
- id: windows-latest
1919
name: Windows

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
build-and-stage-release:
1010
if: ${{ github.repository == 'spring-projects/spring-boot' }}
1111
name: Build and Stage Release
12-
runs-on: ubuntu22-8-32-OSS
12+
runs-on: ubuntu-latest
1313
steps:
1414
- name: Check Out Code
1515
uses: actions/checkout@v4

.github/workflows/run-system-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ concurrency:
88
jobs:
99
run-system-tests:
1010
name: 'Java ${{ matrix.java.version}}'
11-
runs-on: ubuntu22-8-32-OSS
11+
runs-on: ubuntu-latest
1212
if: ${{ github.repository == 'spring-projects/spring-boot' }}
1313
strategy:
1414
matrix:

0 commit comments

Comments
 (0)