Skip to content

CI: pin Java to JDK 25 via actions/setup-java - #21

Merged
hiroshi-cl merged 1 commit into
java_extractionfrom
feat/ci-jdk25
Jul 28, 2026
Merged

CI: pin Java to JDK 25 via actions/setup-java#21
hiroshi-cl merged 1 commit into
java_extractionfrom
feat/ci-jdk25

Conversation

@hiroshi-cl

@hiroshi-cl hiroshi-cl commented Jul 27, 2026

Copy link
Copy Markdown

Summary

  • The java-extraction test cases compile and run generated Java via bare javac/java calls in test-suite/misc/java-extraction/run-case.sh, with no explicit toolchain selection, so CI relied on whatever old default JDK happens to be on the runner PATH.
  • Add an explicit actions/setup-java@v5 step (Temurin, JDK 25) before the OCaml setup / test steps, matching the JDK used locally.

Test plan

  • Confirm the ☕ Setup Java step in both the macOS and Linux jobs resolves and installs Temurin 25.x
  • Confirm the 🐛 Test Rocq step still passes, including the java-extraction cases (basic_arithmetic, list_reverse)

🤖 Generated with Claude Code

The java-extraction test cases compile and run generated Java through
bare javac/java calls, with no explicit toolchain selection, so CI was
relying on whatever old default JDK happens to be on the runner PATH.
Add an explicit Temurin 25 setup step, matching the JDK used locally.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '25'

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JDK25

@hiroshi-cl hiroshi-cl Jul 27, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

今までは指定されてなくてデフォで入ってたやつが使われてた
たぶん以下

  • Linux: 17
  • Mac: 21

@hiroshi-cl
hiroshi-cl requested a review from cedretaber July 27, 2026 17:11
@hiroshi-cl

Copy link
Copy Markdown
Author

🙆‍♂️

@hiroshi-cl
hiroshi-cl merged commit 4346cc8 into java_extraction Jul 28, 2026
4 checks passed
@hiroshi-cl
hiroshi-cl deleted the feat/ci-jdk25 branch July 28, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants