|
@@ -27,16 +27,11 @@ jobs:
|
|
|
spotless:
|
|
|
runs-on: ubuntu-latest
|
|
|
steps:
|
|
|
- # spotless may fail without freeing up more disk space on the runner
|
|
|
- - name: Free disk space
|
|
|
- run: |
|
|
|
- df -h
|
|
|
- sudo rm -rf /usr/local/lib/android
|
|
|
- sudo rm -rf /usr/share/dotnet
|
|
|
- df -h
|
|
|
-
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
+ - name: Free disk space
|
|
|
+ run: .github/scripts/gha-free-disk-space.sh
|
|
|
+
|
|
|
- name: Set up JDK for running Gradle
|
|
|
uses: actions/setup-java@v3
|
|
|
with:
|
|
@@ -170,16 +165,11 @@ jobs:
|
|
|
vm: openj9
|
|
|
fail-fast: false
|
|
|
steps:
|
|
|
- # tests may fail without freeing up more disk space on the runner
|
|
|
- - name: Free disk space
|
|
|
- run: |
|
|
|
- df -h
|
|
|
- sudo rm -rf /usr/local/lib/android
|
|
|
- sudo rm -rf /usr/share/dotnet
|
|
|
- df -h
|
|
|
-
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
+ - name: Free disk space
|
|
|
+ run: .github/scripts/gha-free-disk-space.sh
|
|
|
+
|
|
|
- id: setup-test-java
|
|
|
name: Set up JDK ${{ matrix.test-java-version }}-${{ matrix.vm }} for running tests
|
|
|
uses: actions/setup-java@v3
|
|
@@ -301,17 +291,11 @@ jobs:
|
|
|
run: git config --system core.longpaths true
|
|
|
if: matrix.os == 'windows-latest'
|
|
|
|
|
|
- # downloading the liberty image (a bit over 10gb) fails without freeing up more disk space on the runner
|
|
|
- - name: Free disk space
|
|
|
- run: |
|
|
|
- df -h
|
|
|
- sudo rm -rf /usr/local/lib/android
|
|
|
- sudo rm -rf /usr/share/dotnet
|
|
|
- df -h
|
|
|
- if: matrix.os == 'ubuntu-latest'
|
|
|
-
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
+ - name: Free disk space
|
|
|
+ run: .github/scripts/gha-free-disk-space.sh
|
|
|
+
|
|
|
- name: Set up JDK for running Gradle
|
|
|
uses: actions/setup-java@v3
|
|
|
with:
|