mirror of
				https://github.com/actions/setup-java.git
				synced 2025-10-30 22:10:54 +00:00 
			
		
		
		
	Add support for Oracle GraalVM
This commit is contained in:
		
					parent
					
						
							
								2dfa2011c5
							
						
					
				
			
			
				commit
				
					
						bbbb45e1c5
					
				
			
		
					 8 changed files with 386 additions and 5 deletions
				
			
		|  | @ -9,6 +9,7 @@ | |||
|   - [Oracle](#Oracle) | ||||
|   - [Alibaba Dragonwell](#Alibaba-Dragonwell) | ||||
|   - [SapMachine](#SapMachine) | ||||
|   - [GraalVM](#GraalVM) | ||||
| - [Installing custom Java package type](#Installing-custom-Java-package-type) | ||||
| - [Installing custom Java architecture](#Installing-custom-Java-architecture) | ||||
| - [Installing custom Java distribution from local file](#Installing-Java-from-local-file) | ||||
|  | @ -155,6 +156,21 @@ steps: | |||
| - run: java -cp java HelloWorldApp | ||||
| ``` | ||||
| 
 | ||||
| ### GraalVM | ||||
| **NOTE:** Oracle GraalVM is only available for JDK 17 and later. | ||||
| 
 | ||||
| ```yaml | ||||
| steps: | ||||
| - uses: actions/checkout@v4 | ||||
| - uses: actions/setup-java@v4 | ||||
|   with: | ||||
|     distribution: 'graalvm' | ||||
|     java-version: '21' | ||||
| - run: | | ||||
|     java -cp java HelloWorldApp | ||||
|     native-image -cp java HelloWorldApp | ||||
| ``` | ||||
| 
 | ||||
| ## Installing custom Java package type | ||||
| ```yaml | ||||
| steps: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue