setup-java
setup-java copied to clipboard
Can't install temurin java 8 for macos
Description: My workflow is failing because java 8 is no longer available for macos -> https://github.com/dherault/serverless-offline/actions/runs/8815659321/job/24201682104?pr=1779
https://api.adoptium.net/v3/assets/version/%5B1.0,9.0%5D?project=jdk&vendor=adoptium&heap_size=normal&sort_method=DEFAULT&sort_order=DESC&os=mac&architecture=aarch64&image_type=jdk&release_type=ga&jvm_impl=hotspot&page_size=20
Task version: v3
Platform:
- [ ] Ubuntu
- [x] macOS
- [ ] Windows
Runner type:
- [x] Hosted
- [ ] Self-hosted
Repro steps:
On macos arm64 runner:
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "8"
Expected behavior: It should be possible to install java 8 on macos
Actual behavior: It's not possible to install java 8 on macos
Did I miss the announcement that this is going to be no longer supported? Our test suite is also failing for JDK8 on MacOS with setup-java@v4.
https://github.com/quickfix-j/quickfixj/actions/runs/8811578898/job/24194984329
New macos-latest use macos-14 on M1 ... https://docs.github.com/en/enterprise-cloud@latest/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
and there is no distribution for such architecture https://adoptium.net/temurin/releases/?version=8&arch=aarch64&os=mac
@slawekjaranowski Ah, good to know. Thanks!
Hello @DorianMazur Thank you for creating this issue. We will investigate it and get back to you as soon as we have some feedback.
- Considering the https://github.com/adoptium/adoptium/issues/96 has closed, this issue seems to be no possible solution?
Hello @DorianMazur, The issue is due to the incompatibility between the macos-latest (macOS-14) runner and Temurin version 8. The runner supports arm64, whereas Temurin version 8 is designed for the x86 architecture. You can resolve this by switching to the Zulu distribution, which provides arm64 support for macOS in JDK 8, or alternatively, use Temurin Java version 11. Hence we are proceeding to close this issue. Please feel free to reach us in case of any further concerns/clarifications needed.