Skip to content

Commit

Permalink
installer: export include path
Browse files Browse the repository at this point in the history
  • Loading branch information
rumblefrog committed Nov 16, 2019
1 parent 55e254e commit e88cc01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
}
Expand Down
3 changes: 2 additions & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -22,6 +22,7 @@ export async function installCompiler(range: string): Promise<string> {
}

addPath(cache);
exportVariable('includePath', pathJoin(cache, 'include'));

return version;
}
Expand Down

0 comments on commit e88cc01

Please sign in to comment.