1
0
mirror of synced 2025-12-30 12:02:01 -05:00
Files
docs/data/reusables/github-actions/java-jvm-architecture.md
Vanessa Yuen 3df90fc9b8 Hello git history spelunker!
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2020-09-27 14:10:11 +02:00

20 lines
812 B
Markdown

### Specifying the JVM version and architecture
The starter workflow template sets up the `PATH` to contain OpenJDK 8 for the x64 platform. If you want to use a different version of Java, or target a different architecture (`x64` or `x86`), you can use the `setup-java` action to choose a different Java runtime environment.
For example, to use version 9.0.4 of the JDK for the x64 platform, you can use the `setup-java` action and configure the `java-version` and `architecture` parameters to `'9.0.4'` and `x64`.
{% raw %}
```yaml
steps:
- uses: actions/checkout@v2
- name: Set up JDK 9.0.4 for x64
uses: actions/setup-java@v1
with:
java-version: '9.0.4'
architecture: x64
```
{% endraw %}
For more information, see the [`setup-java`](https://github.com/actions/setup-java) action.