1
0
mirror of synced 2025-12-30 12:02:01 -05:00
Files
docs/data/reusables/github-actions/java-jvm-architecture.md
Cynthia Rich 6c3788cde0 Add code block copy button to more actions guides code blocks (#16213)
* add copy to code blocks in about service containers

* add copy to code blocks in java with ant guide

* add copy to code blocks in actions guides

* Update content/actions/guides/about-service-containers.md

Co-authored-by: Jason Etcovitch <jasonetco@github.com>

* {:code} should be {:copy}

* add copy button in reusable

Co-authored-by: Jason Etcovitch <jasonetco@github.com>
2021-01-20 14:31:07 -05:00

819 B

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 %}

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 action.