-
Notifications
You must be signed in to change notification settings - Fork 762
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
Add Amazon Corretto distribution #312
Conversation
Hello @WtfJoke. Thank you for your pull request. I have some questions:
|
I'll try to answer the questions :)
Not that I know of (at least the json, doesnt provide anything and I didnt found anything else documented).
Not many, but they do (for example they provide jre 8 for windows) Is there a particular reason for your question (in order for me to improve my pr in any way)? |
Hello @WtfJoke. Thank you for your responses. Could you please add support for jre versions ? |
jre versions are already supported, see this test case for example:
Or did I missunderstand you? |
Thank you @WtfJoke. Could you please include this test case to e2e ? |
Sure, I've included it in the e2e-versions workflow (they provide only jre releases currently for windows in version 8). As a small bonus 🎈 I've also changed the version of job |
Thank you. |
Is there a way to test the unreleased version? |
@btsteve jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install JDK 11
uses: WtfJoke/setup-java@addCorretto
with:
distribution: corretto
java-version: 11 Or here the full workflow yaml, I've tested with |
Hey @dmitry-shibanov Thanks a bunch! |
@WtfJoke: can I also install Corretto on a Windows agent ( |
@mu88 Yes, its also possible in windows. See the example (there is also a full workflow yaml linked) in the comment above (you just can replace ubuntu with windows as you've already have written): If you still need help, feel free to post your workflow. |
For what its worth I've been using @WtfJoke's fork for a while now and seems to be working great! @dmitry-shibanov Is this good to merge? Is there anything in particular I should test? |
Hello @WtfJoke. Could you please sync with the main ? I've tested your changes and it works as expected. |
Support only major versions Fix typo in folder name
... temurin provides jre for LTS releases
Hi @dmitry-shibanov Looking forward for the merge/release 😄 🚀 |
Great work! Does anyone have an example of how to use this now? |
Description:
Add feature to allow setup-java to run with major versions of available amazon correttos binaries.
The available (major) versions are fetched from https://corretto.github.io/corretto-downloads/ (from the following json: https://corretto.github.io/corretto-downloads/latest_links/indexmap_with_checksum.json).
I've tested it also with a random java project here: Workflow-run
Related issue:
Fixes #68
Check list: