Skip to content

Commit 439d39c

Browse files
Update common files (#466)
1 parent 872b1b5 commit 439d39c

File tree

6 files changed

+36
-6
lines changed

6 files changed

+36
-6
lines changed

.github/workflows/central-sync.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,16 @@ jobs:
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:
2025
ref: v${{ github.event.inputs.release_version }}
21-
- uses: gradle/actions/wrapper-validation@v4
26+
- uses: gradle/actions/wrapper-validation@v5
2227
- name: Set up JDK
2328
uses: actions/setup-java@v5
2429
with:

.github/workflows/graalvm-dev.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ jobs:
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

.github/workflows/graalvm-latest.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ jobs:
4444
DEVELOCITY_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
4545
DEVELOCITY_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
4646
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:)
4752
- uses: actions/checkout@v5
4853
- name: Pre-Build Steps
4954
uses: micronaut-projects/github-actions/graalvm/pre-build@master

.github/workflows/gradle.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ jobs:
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"
@@ -54,7 +59,7 @@ jobs:
5459
github-token: ${{ secrets.GITHUB_TOKEN }}
5560

5661
- name: "🔧 Setup Gradle"
57-
uses: gradle/actions/setup-gradle@v4
62+
uses: gradle/actions/setup-gradle@v5
5863

5964
- name: "❓ Optional setup step"
6065
run: |
@@ -86,7 +91,7 @@ jobs:
8691

8792
- name: "📜 Upload binary compatibility check results"
8893
if: matrix.java == '21'
89-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
94+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
9095
with:
9196
name: binary-compatibility-reports
9297
path: "**/build/reports/binary-compatibility-*.html"

.github/workflows/publish-snapshot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ jobs:
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:

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@ jobs:
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:
1924
token: ${{ secrets.GH_TOKEN }}
20-
- uses: gradle/actions/wrapper-validation@v4
25+
- uses: gradle/actions/wrapper-validation@v5
2126
- name: Set up JDK
2227
uses: actions/setup-java@v5
2328
with:
@@ -68,13 +73,13 @@ jobs:
6873
# Store the hash in a file, which is uploaded as a workflow artifact.
6974
sha256sum $ARTIFACTS | base64 -w0 > artifacts-sha256
7075
- name: Upload build artifacts
71-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
76+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7277
with:
7378
name: gradle-build-outputs
7479
path: build/repo/${{ steps.publish.outputs.group }}/*/${{ steps.publish.outputs.version }}/*
7580
retention-days: 5
7681
- name: Upload artifacts-sha256
77-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
82+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7883
with:
7984
name: artifacts-sha256
8085
path: artifacts-sha256

0 commit comments

Comments
 (0)