mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2025-07-04 12:48:19 +00:00
target input and installing rustup if not available
This commit is contained in:
parent
efa07bee10
commit
7d6ef4b233
7 changed files with 883 additions and 44 deletions
|
@ -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')
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue