target input and installing rustup if not available

This commit is contained in:
svartalf 2019-09-13 20:19:52 +03:00
parent efa07bee10
commit 7d6ef4b233
7 changed files with 883 additions and 44 deletions

View file

@ -28,6 +28,7 @@ function inputBoolean(name: string): boolean {
export interface ToolchainOptions {
name: string,
target?: string,
default: boolean,
override: boolean
}
@ -35,7 +36,8 @@ export interface ToolchainOptions {
export function toolchain_args(): ToolchainOptions {
return {
name: getInput('toolchain', {required: true}),
target: getInput('target') || undefined,
default: inputBoolean('default'),
override: inputBoolean('override')
}
};
}