Cache installations in GitHub tool-cache.

Fixes #7
This commit is contained in:
Fabio Niephaus
2022-03-01 10:50:00 +01:00
parent 61450f0977
commit 66dc2bf069
7 changed files with 78 additions and 30 deletions

View File

@@ -1,6 +1,4 @@
import * as otypes from '@octokit/types'
import {homedir} from 'os'
import {join} from 'path'
export const IS_LINUX = process.platform === 'linux'
export const IS_MACOS = process.platform === 'darwin'
@@ -9,7 +7,6 @@ export const IS_WINDOWS = process.platform === 'win32'
export const VERSION_DEV = 'dev'
export const VERSION_LATEST = 'latest'
export const GRAALVM_BASE = join(homedir(), '.graalvm')
export const GRAALVM_FILE_EXTENSION = IS_WINDOWS ? '.zip' : '.tar.gz'
export const GRAALVM_GH_USER = 'graalvm'
export const GRAALVM_PLATFORM = IS_WINDOWS ? 'windows' : process.platform