File tree Expand file tree Collapse file tree 3 files changed +22
-17
lines changed Expand file tree Collapse file tree 3 files changed +22
-17
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,29 @@ inputs:
19
19
runs :
20
20
using : " composite"
21
21
steps :
22
- - uses : actions-rs/toolchain@v1
23
- with :
24
- profile : minimal
25
- toolchain : ${{ inputs.rust }}
26
- override : true # use selected toolchain for remainder of this step
27
- components : ${{ inputs.components }}
22
+ - name : " Configure"
23
+ id : configure
24
+ run : |
25
+ echo "components=$( for c in ${cs//,/ }; do echo -n ' --component' $c; done )" >> $GITHUB_OUTPUT
26
+ env :
27
+ cs : ${{ inputs.components }}
28
+ shell : bash
29
+
30
+ - name : " Rustup"
31
+ run : |
32
+ rustup toolchain install ${{ inputs.rust }} --profile minimal --no-self-update ${{ steps.configure.outputs.components }}
33
+ rustup default ${{ inputs.rust }}
34
+ shell : bash
28
35
29
- # For notes about the cache, see 'Full CI' workflow
30
36
- uses : Swatinem/rust-cache@v2
31
37
with :
32
38
shared-key : ${{ inputs.cache-key }}
39
+
40
+ - name : " Set environment variables used by toolchain"
41
+ run : |
42
+ echo CARGO_TERM_COLOR=always >> $GITHUB_ENV
43
+ echo CARGO_INCREMENTAL=0 >> $GITHUB_ENV
44
+ echo RUST_BACKTRACE=1 >> $GITHUB_ENV
45
+
46
+ rustc --version --verbose
47
+ shell : bash
Original file line number Diff line number Diff line change 25
25
name : Full CI
26
26
27
27
env :
28
- # Environment variables used by toolchain
29
- CARGO_TERM_COLOR : always
30
- CARGO_INCREMENTAL : 0
31
- RUST_BACKTRACE : 1
32
-
33
28
# Local variables
34
29
# Note: using variables is limited at the moment, see https://github.com/actions/runner/issues/480
35
30
GDRUST_FEATURES : " gdnative/async,gdnative/serde,gdnative_bindings_generator/debug"
Original file line number Diff line number Diff line change 5
5
name : Minimal CI
6
6
7
7
env :
8
- # Environment variables used by toolchain
9
- CARGO_TERM_COLOR : always
10
- CARGO_INCREMENTAL : 0
11
- RUST_BACKTRACE : 1
12
-
13
8
# Local variables
14
9
# Note: using variables is limited at the moment, see https://github.com/actions/runner/issues/480
15
10
GODOT_VER : " 3.5.1-stable"
You can’t perform that action at this time.
0 commit comments