Skip to content

Commit 6311de6

Browse files
committed
Switch from mise to ASDF
1 parent 2ac94d3 commit 6311de6

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

.github/workflows/binaries.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -194,22 +194,14 @@ jobs:
194194
uses: gittools/actions/gitversion/[email protected]
195195

196196
# region setup-JDK
197-
- name: Setup JDK 26 EA for "java toolchain" of Gradle
198-
if: startsWith(matrix.os, 'macos')
199-
uses: jdx/mise-action@v2
200-
with:
201-
mise_toml: |
202-
[tools]
203-
"java" = { version = "openjdk-26", release_type = "ea" }
204-
- name: Make JDK known to gradle (Linux, macOS)
197+
- name: Create ASDF config
205198
if: startsWith(matrix.os, 'macos')
206-
shell: bash
207-
# Hint by https://mise.jdx.dev/lang/java.html
208-
run: mkdir -p ~/.asdf/installs/ && ln -s ~/.local/share/mise/installs/java ~/.asdf/installs/
209-
- name: Make JDK known to gradle (Windows)
199+
run :
200+
cat > .tool-versions <<EOF
201+
java openjdk-26.ea.18
202+
- name: Setup JDK 26 EA for "java toolchain" of Gradle
210203
if: startsWith(matrix.os, 'macos')
211-
shell: bash
212-
run: mv ~/AppData/Local/mise ~/.asdf
204+
uses: asdf-vm/actions/install@v4
213205
- name: Tell gradle to use JDK 26
214206
if: startsWith(matrix.os, 'macos')
215207
run: sed -i '' "s/JavaLanguageVersion.of(25)/JavaLanguageVersion.of(26)/" build-logic/src/main/kotlin/buildlogic.java-common-conventions.gradle.kts

0 commit comments

Comments
 (0)