File tree Expand file tree Collapse file tree 6 files changed +35
-2
lines changed Expand file tree Collapse file tree 6 files changed +35
-2
lines changed Original file line number Diff line number Diff line change 1414 central-sync :
1515 runs-on : ubuntu-latest
1616 steps :
17+ - name : Remove system JDKs
18+ run : |
19+ sudo rm -rf /usr/lib/jvm/*
20+ unset JAVA_HOME
21+ export PATH=$(echo "$PATH" | tr ':' '\n' | grep -v '/usr/lib/jvm' | paste -sd:)
1722 - name : Checkout repository
1823 uses : actions/checkout@v5
1924 with :
Original file line number Diff line number Diff line change 4242 DEVELOCITY_CACHE_USERNAME : ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
4343 DEVELOCITY_CACHE_PASSWORD : ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
4444 steps :
45+ - name : Remove system JDKs
46+ run : |
47+ sudo rm -rf /usr/lib/jvm/*
48+ unset JAVA_HOME
49+ export PATH=$(echo "$PATH" | tr ':' '\n' | grep -v '/usr/lib/jvm' | paste -sd:)
4550 - uses : actions/checkout@v5
4651 - name : Pre-Build Steps
4752 uses : micronaut-projects/github-actions/graalvm/pre-build@master
Original file line number Diff line number Diff line change @@ -28,26 +28,34 @@ jobs:
2828 - name : Build Matrix
2929 uses : micronaut-projects/github-actions/graalvm/build-matrix@master
3030 id : build-matrix
31+ with :
32+ java-version : ' 21'
3133 build :
3234 needs : build_matrix
3335 if : github.repository != 'micronaut-projects/micronaut-project-template'
3436 runs-on : ubuntu-latest
3537 strategy :
3638 max-parallel : 6
3739 matrix :
38- java : ['21', '25' ]
40+ java : ['21']
3941 native_test_task : ${{ fromJson(needs.build_matrix.outputs.matrix).native_test_task }}
4042 env :
4143 DEVELOCITY_ACCESS_KEY : ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
4244 DEVELOCITY_CACHE_USERNAME : ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
4345 DEVELOCITY_CACHE_PASSWORD : ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
4446 steps :
47+ - name : Remove system JDKs
48+ run : |
49+ sudo rm -rf /usr/lib/jvm/*
50+ unset JAVA_HOME
51+ export PATH=$(echo "$PATH" | tr ':' '\n' | grep -v '/usr/lib/jvm' | paste -sd:)
4552 - uses : actions/checkout@v5
4653 - name : Pre-Build Steps
4754 uses : micronaut-projects/github-actions/graalvm/pre-build@master
4855 id : pre-build
4956 with :
5057 distribution : ' graalvm'
58+ gradle-java : ' 21'
5159 java : ${{ matrix.java }}
5260 - name : Build Steps
5361 uses : micronaut-projects/github-actions/graalvm/build@master
Original file line number Diff line number Diff line change 3434 OSS_INDEX_PASSWORD : ${{ secrets.OSS_INDEX_PASSWORD }}
3535 steps :
3636 # https://github.com/actions/virtual-environments/issues/709
37+ - name : Remove system JDKs
38+ run : |
39+ sudo rm -rf /usr/lib/jvm/*
40+ unset JAVA_HOME
41+ export PATH=$(echo "$PATH" | tr ':' '\n' | grep -v '/usr/lib/jvm' | paste -sd:)
3742 - name : " 🗑 Free disk space"
3843 run : |
3944 sudo rm -rf "/usr/local/share/boost"
6974 - name : " 🛠 Build with Gradle"
7075 id : gradle
7176 run : |
72- ./gradlew jacocoReport check --no-daemon --continue
77+ ./gradlew check jacocoReport --no-daemon --continue
7378
7479 - name : " 🔎 Run static analysis"
7580 if : env.SONAR_TOKEN != '' && matrix.java == '21'
Original file line number Diff line number Diff line change 1010 if : github.repository != 'micronaut-projects/micronaut-project-template'
1111 runs-on : ubuntu-latest
1212 steps :
13+ - name : Remove system JDKs
14+ run : |
15+ sudo rm -rf /usr/lib/jvm/*
16+ unset JAVA_HOME
17+ export PATH=$(echo "$PATH" | tr ':' '\n' | grep -v '/usr/lib/jvm' | paste -sd:)
1318 - uses : actions/checkout@v5
1419 - uses : actions/cache@v4
1520 with :
Original file line number Diff line number Diff line change 1313 artifacts-sha256 : ${{ steps.hash.outputs.artifacts-sha256 }} # Computed hashes for build artifacts.
1414 runs-on : ubuntu-latest
1515 steps :
16+ - name : Remove system JDKs
17+ run : |
18+ sudo rm -rf /usr/lib/jvm/*
19+ unset JAVA_HOME
20+ export PATH=$(echo "$PATH" | tr ':' '\n' | grep -v '/usr/lib/jvm' | paste -sd:)
1621 - name : Checkout repository
1722 uses : actions/checkout@v5
1823 with :
You can’t perform that action at this time.
0 commit comments