Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check build with the MSRV declared in Cargo.toml
- Loading branch information
1 parent
dbd01fc
commit 9d41891
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,6 @@ Cargo.lock | |
.idea | ||
|
||
*.new | ||
|
||
# Ignore toolchain installed by script | ||
rust-toolchain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#! /bin/sh | ||
# | ||
# Force the use of the MSRV toolchain (for use with the CI). | ||
# Since action-rs/toolchain@v1 uses rustup 1.21.x, only the | ||
# toolchain name can be given in the file. | ||
# | ||
# If you call this script in your working directory, do not | ||
# forget that it will create a "rust-toolchain" file there. | ||
|
||
set -e | ||
|
||
root=$(dirname "$0")/.. | ||
|
||
version=$(sed -ne 's/rust-version *= *"\(.*\)"/\1/p' "$root"/Cargo.toml) | ||
echo $version > "$root"/rust-toolchain | ||
echo "Rust $version installed as the forced toolchain" |