File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
.github/actions/common-setup Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,25 @@ runs:
47
47
48
48
# > --------------------------------------------------
49
49
# > Rust
50
+ - name : Reset and update Rust toolchain
51
+ shell : bash
52
+ run : |
53
+ if command -v rustup &> /dev/null; then
54
+ rustup self update
55
+ rustup update --force
56
+ fi
57
+
58
+ - name : Get Rust toolchain version
59
+ id : rust-toolchain
60
+ shell : bash
61
+ run : |
62
+ echo "TOOLCHAIN=$(bash scripts/rust-toolchain.sh)" >> $GITHUB_ENV
63
+
50
64
# https://github.com/actions-rust-lang/setup-rust-toolchain
51
65
- name : Set up Rust toolchain
52
66
uses : actions-rust-lang/setup-rust-toolchain@v1
53
67
with :
68
+ toolchain : ${{ env.TOOLCHAIN }}
54
69
components : clippy,rustfmt
55
70
override : true
56
71
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ awk -F' "' ' /version[[:space:]]*=/{gsub(/[[:space:]]/,"",$2); print $2; exit}' rust-toolchain.toml
You can’t perform that action at this time.
0 commit comments