Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install temurin java 8 for macos #625

Closed
2 of 5 tasks
DorianMazur opened this issue Apr 24, 2024 · 6 comments
Closed
2 of 5 tasks

Can't install temurin java 8 for macos #625

DorianMazur opened this issue Apr 24, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@DorianMazur
Copy link

DorianMazur commented Apr 24, 2024

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
  • macOS
  • Windows

Runner type:

  • 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

@chrjohn
Copy link

chrjohn commented Apr 24, 2024

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

@slawekjaranowski
Copy link

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

@DorianMazur
Copy link
Author

@slawekjaranowski Ah, good to know. Thanks!

@HarithaVattikuti
Copy link
Contributor

Hello @DorianMazur
Thank you for creating this issue. We will investigate it and get back to you as soon as we have some feedback.

@linghengqian
Copy link

@mahabaleshwars
Copy link
Contributor

Hello @DorianMazur, the issue arises from the incompatibility between the macos-latest(macOS-14) runner and temurin version 8. The runner supports arm64, while temurin version 8 is designed for the x86 architecture. You could resolve this by switching to the zulu distribution, which provides arm64 support for macos in JDK 8, or alternatively use temurin Java version 11.

BenWoodworth added a commit to BenWoodworth/knbt that referenced this issue May 7, 2024
The new GitHub macOS host uses ARM, and the Adopt/Temurin JDKs no longer work since they aren't built for that architecture until Java 11.

See: actions/setup-java#625
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants