Skip to content

Commit

Permalink
Build
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrisbin committed Apr 18, 2024
1 parent 6a1a83b commit 228ee94
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ function getInputs() {
cachePrefix: core.getInput("cache-prefix"),
cacheSaveAlways: core.getBooleanInput("cache-save-always"),
upgradeStack: core.getBooleanInput("upgrade-stack"),
compilerTools: core.getMultilineInput("compiler-tools"),
stackYaml: getInputDefault("stack-yaml", null),
};
}
Expand Down Expand Up @@ -230,6 +231,7 @@ async function run() {
await (0, with_cache_1.withCache)([stackRoot, stackPrograms].concat(stackWorks), (0, get_cache_keys_1.getCacheKeys)([`${cachePrefix}/deps`, hashes.snapshot, hashes.package]), async () => {
await stack.setup(inputs.stackSetupArguments);
await stack.buildDependencies(inputs.stackBuildArgumentsDependencies);
await stack.installCompilerTools(inputs.compilerTools);
}, {
...with_cache_1.DEFAULT_CACHE_OPTIONS,
saveOnError: inputs.cacheSaveAlways,
Expand Down Expand Up @@ -432,6 +434,12 @@ class StackCLI {
async setup(args) {
return await this.exec(["setup"].concat(args));
}
async installCompilerTools(tools) {
if (tools.length > 0) {
return await this.exec(["install", "--copy-compiler-tool"].concat(tools));
}
return 0;
}
async buildDependencies(args) {
return await this.buildNoTest(["--dependencies-only"].concat(args));
}
Expand Down

0 comments on commit 228ee94

Please sign in to comment.