|
1 |
| -import * as core from '@actions/core' |
2 |
| -import * as path from 'path' |
3 |
| -import {ANDROID_SDK_ROOT, ANNOTATION_MATCHERS} from './constants' |
4 |
| -import {preGradleCache, preAndroidCache, preGradleWrapper} from './cache' |
5 |
| -import {install} from './install' |
6 |
| - |
7 |
| -async function run(): Promise<void> { |
8 |
| - // process all caching but wait for them to all complete |
9 |
| - await Promise.all([preGradleWrapper(), preGradleCache(), preAndroidCache()]) |
10 |
| - |
11 |
| - await install() |
12 |
| - |
13 |
| - core.exportVariable('ANDROID_HOME', ANDROID_SDK_ROOT) |
14 |
| - core.exportVariable('ANDROID_SDK_ROOT', ANDROID_SDK_ROOT) |
15 |
| - |
16 |
| - core.addPath(path.join(ANDROID_SDK_ROOT, 'tools', 'bin')) |
17 |
| - core.addPath(path.join(ANDROID_SDK_ROOT, 'platform-tools')) |
18 |
| - |
19 |
| - core.debug('add matchers') |
20 |
| - const matchersPath = path.join(__dirname, '..', '..', '.github') |
21 |
| - for (const matcher of ANNOTATION_MATCHERS) { |
22 |
| - console.log(`##[add-matcher]${path.join(matchersPath, matcher)}`) |
23 |
| - } |
24 |
| -} |
25 |
| - |
26 |
| -run() |
| 1 | +import * as core from '@actions/core' |
| 2 | +import * as path from 'path' |
| 3 | +import {ANDROID_SDK_ROOT, ANNOTATION_MATCHERS} from './constants' |
| 4 | +import {preGradleCache, preAndroidCache, preGradleWrapper} from './cache' |
| 5 | +import {install} from './install' |
| 6 | + |
| 7 | +async function run(): Promise<void> { |
| 8 | + // process all caching but wait for them to all complete |
| 9 | + await Promise.all([preGradleWrapper(), preGradleCache(), preAndroidCache()]) |
| 10 | + |
| 11 | + await install() |
| 12 | + |
| 13 | + core.exportVariable('ANDROID_HOME', ANDROID_SDK_ROOT) |
| 14 | + core.exportVariable('ANDROID_SDK_ROOT', ANDROID_SDK_ROOT) |
| 15 | + |
| 16 | + core.addPath(path.join(ANDROID_SDK_ROOT, 'tools', 'bin')) |
| 17 | + core.addPath(path.join(ANDROID_SDK_ROOT, 'platform-tools')) |
| 18 | + |
| 19 | + core.debug('add matchers') |
| 20 | + const matchersPath = path.join(__dirname, '..', '..', '.github') |
| 21 | + for (const matcher of ANNOTATION_MATCHERS) { |
| 22 | + console.log(`##[add-matcher]${path.join(matchersPath, matcher)}`) |
| 23 | + } |
| 24 | +} |
| 25 | + |
| 26 | +run() |
0 commit comments