From e88cc01224a12f7b5652c2c8976126d01365e430 Mon Sep 17 00:00:00 2001 From: rumblefrog Date: Sat, 16 Nov 2019 01:43:48 -0500 Subject: [PATCH] installer: export include path --- lib/installer.js | 1 + src/installer.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/installer.js b/lib/installer.js index 33b185c..bfb1607 100644 --- a/lib/installer.js +++ b/lib/installer.js @@ -27,6 +27,7 @@ function installCompiler(range) { cache = yield downloadCompiler(version); } core_1.addPath(cache); + core_1.exportVariable('includePath', path_1.join(cache, 'include')); return version; }); } diff --git a/src/installer.ts b/src/installer.ts index 767ae6f..85ddfda 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -1,5 +1,5 @@ import { find as findCache, downloadTool, extractTar, extractZip, cacheDir } from '@actions/tool-cache'; -import { addPath } from '@actions/core'; +import { addPath, exportVariable } from '@actions/core'; import { maxSatisfying } from 'semver'; import { join as pathJoin } from 'path'; import { getVersions } from './utils/scraper'; @@ -22,6 +22,7 @@ export async function installCompiler(range: string): Promise { } addPath(cache); + exportVariable('includePath', pathJoin(cache, 'include')); return version; }