Skip to content

Commit e88cc01

Browse files
committed
installer: export include path
1 parent 55e254e commit e88cc01

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/installer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ function installCompiler(range) {
2727
cache = yield downloadCompiler(version);
2828
}
2929
core_1.addPath(cache);
30+
core_1.exportVariable('includePath', path_1.join(cache, 'include'));
3031
return version;
3132
});
3233
}

src/installer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { find as findCache, downloadTool, extractTar, extractZip, cacheDir } from '@actions/tool-cache';
2-
import { addPath } from '@actions/core';
2+
import { addPath, exportVariable } from '@actions/core';
33
import { maxSatisfying } from 'semver';
44
import { join as pathJoin } from 'path';
55
import { getVersions } from './utils/scraper';
@@ -22,6 +22,7 @@ export async function installCompiler(range: string): Promise<string> {
2222
}
2323

2424
addPath(cache);
25+
exportVariable('includePath', pathJoin(cache, 'include'));
2526

2627
return version;
2728
}

0 commit comments

Comments
 (0)