Pin rust version in toolchain to match gitlab CI

This commit is contained in:
Σrebe - Romain GERARD
2022-05-06 16:30:19 +02:00
parent ebe76a5129
commit e891576f79

View File

@@ -17,7 +17,9 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.60.0
components: rustfmt, clippy
- uses: hashicorp/setup-terraform@v1
with:
terraform_version: 0.14.10
@@ -30,7 +32,6 @@ jobs:
run: |
echo "########## LINTER ##########"
cargo fmt --all -- --check --color=always || (echo "Use cargo fmt to format your code"; exit 1)
rustup component add clippy
cargo clippy --locked --all --all-features --lib -- -D warnings || (echo "Solve your clippy warnings to continue"; exit 1)
export PATH=$GITHUB_WORKSPACE/bin:$PATH
export RUSTC_WRAPPER=$GITHUB_WORKSPACE/bin/sccache