Set up Windows environment with build tools.

This commit is contained in:
Fabio Niephaus
2022-01-03 08:53:37 +01:00
parent a686e47055
commit a1ee297bf2
2 changed files with 65 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import * as graalvm from './graalvm'
import {join} from 'path'
import {mkdirP} from '@actions/io'
import {setUpGraalVMTrunk} from './graalvm-trunk'
import {setUpWindowsEnvironment} from './msvc'
async function run(): Promise<void> {
try {
@@ -14,6 +15,10 @@ async function run(): Promise<void> {
componentsString.length > 0 ? componentsString.split(',') : []
const setJavaHome = core.getInput('set-java-home') === 'true'
if (c.IS_WINDOWS) {
setUpWindowsEnvironment()
}
await mkdirP(c.GRAALVM_BASE)
// Download or build GraalVM