-
Notifications
You must be signed in to change notification settings - Fork 3
/
step.yml
121 lines (110 loc) · 4.34 KB
/
step.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#
# A couple of useful guides & docs:
#
# - Main Bitrise CLI docs: https://github.com/bitrise-io/bitrise/tree/master/_docs
# - Step Development Guideline: https://github.com/bitrise-io/bitrise/blob/master/_docs/step-development-guideline.md
# - Bitrise.yml format spec: https://github.com/bitrise-io/bitrise/blob/master/_docs/bitrise-yml-format-spec.md
# - Bitrise docs: http://devcenter.bitrise.io/
# - Bitrise CLI guides: http://devcenter.bitrise.io/bitrise-cli/
title: |-
Rust Install
summary: |
Install the Rust Toolchain.
description: |
Install the required components to build and run Rust projects in the current workflow.
website: https://github.com/nick0602/bitrise-step-rustup/
source_code_url: https://github.com/nick0602/bitrise-step-rustup/
support_url: https://github.com/nick0602/bitrise-step-rustup/issues
# If this step should be available only for certain project types
# just uncomment this `project_type_tags` section and include all the
# project types supported by the step. If the step can be used for all
# project types then you can just remove this section.
# If no `project_type_tags` specified (or specified as an empty array)
# that means the step can be used for any project type.
# You can find more information about project type tags in the Step Development Guideline:
# https://github.com/bitrise-io/bitrise/blob/master/_docs/step-development-guideline.md
#
# project_type_tags:
# - ios
# - macos
# - android
# - xamarin
# - react-native
# - cordova
# - ionic
# - flutter
# Type tags are used for categorizing steps, for easier step discovery in Step Libraries.
# You can find more information about type tags in the Step Development Guideline:
# https://github.com/bitrise-io/bitrise/blob/master/_docs/step-development-guideline.md
type_tags:
- installer
# These properties define whether a Step is run in a given Workflow or not.
# You can find more information about this in the documentation here:
# https://devcenter.bitrise.io/en/steps-and-workflows/developing-your-own-bitrise-step/developing-a-new-step.html#setting-conditions-for-running-the-step
#
# is_always_run: false
# is_skippable: false
# run_if: ""
# Use the `deps` property to declare dependencies that you can fetch from an OS dependency manager.
# You can find more information about this in the documentation here:
# https://devcenter.bitrise.io/en/steps-and-workflows/developing-your-own-bitrise-step/developing-a-new-step.html#submodules-and-step-dependencies
#
# deps:
# brew:
# - name: cmake
# apt_get:
# - name: cmake
toolkit:
bash:
entry_file: step.sh
inputs:
- rust_version: "stable"
opts:
title: Rust version
summary: Installs and uses the specified Rust version.
description: |
Specify a Rust version. If blank, defaults to the current `stable` version.
is_expand: true
- auto_update_toolchain: "false"
opts:
title: Update the Rust Toolchain
summary: Automatically update the Rust Toolchain on every run.
description: |
If `true`, forces the update of the Rust Toolchain. Valid for `stable` and `nightly` versions only.
value_options: ["true", "false"]
is_expand: true
- cache_level: none
opts:
title: Set cache level
summary: Sets the local folders to be cached.
description: |
`all` will cache cargo binaries and rustup root folder, `none` won't cache any of the above.
value_options: [all, none]
is_expand: true
- show_exported_envs: "false"
opts:
title: Show Toolchain versions
summary: Shows the version of the Toolchain components at the end of the step.
description: |
If `true`, prints the exported `$RUSTUP_VERSION`, `$RUSTC_VERSION` and `$CARGO_VERSION` at the end of the step.
value_options: ["true", "false"]
is_expand: true
outputs:
- RUSTUP_VERSION:
opts:
title: "Current `rustup` version"
summary: The current Rust Toolchain version
description: |
The version returned by the `rustup -V` command.
- RUSTC_VERSION:
opts:
title: "Current `rustc` version"
summary: The current Rustc version
description: |
The version returned by the `rustc -V` command.
- CARGO_VERSION:
opts:
title: "Current `cargo` version"
summary: The current Cargo version
description: |
The version returned by the `cargo -V` command.