Skip to content

Commit 92e21c2

Browse files
LimKianAnnyetwurk
authored andcommitted
Favor rustc to get rust version
Signed-off-by: Lim, Kian-An <[email protected]>
1 parent 80dce26 commit 92e21c2

File tree

6 files changed

+5
-75
lines changed

6 files changed

+5
-75
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
- name: Set env vars
1919
run: |
20-
source ci/rust-version.sh
20+
rust_stable=$(rustc --version | awk '{print $2}')
2121
echo "RUST_STABLE=$rust_stable" | tee -a $GITHUB_ENV
2222
2323
- if: runner.os == 'Linux'

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
- name: Set env vars
1818
run: |
19-
source ci/rust-version.sh
19+
rust_stable=$(rustc --version | awk '{print $2}')
2020
echo "RUST_STABLE=$rust_stable" | tee -a $GITHUB_ENV
2121
2222
- if: runner.os == 'Linux'

ci/cargo-build-test.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66
set -e
77
cd "$(dirname "$0")/.."
88

9-
source ./ci/rust-version.sh stable
10-
119
export RUSTFLAGS="-D warnings"
1210
export RUSTBACKTRACE=1
1311

1412
set -x
1513

1614
# Build/test all host crates
15+
rust_stable=$(rustc --version | awk '{print $2}')
1716
cargo +"$rust_stable" build
1817
cargo +"$rust_stable" test -- --nocapture
1918

ci/create-tarball.sh

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ echo --- Creating release tarball
4040
# Make CHANNEL available to include in the software version information
4141
export CHANNEL
4242

43-
source ci/rust-version.sh stable
4443
ci/cargo-install-all.sh stable "${RELEASE_BASENAME}"
4544

4645
tar cvf "${TARBALL_BASENAME}"-$TARGET.tar "${RELEASE_BASENAME}"

ci/rust-version.sh

-69
This file was deleted.

rust-toolchain

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
1.60.0
1+
[toolchain]
2+
channel = "1.60.0"

0 commit comments

Comments
 (0)