Skip to content

Commit 0f8e7a7

Browse files
committed
Update ci.sh to use MSRV for builds
Also add rust version to the toml. Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
1 parent 8eb762b commit 0f8e7a7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ keywords = ["parsec", "cli", "tool"]
1010
categories = ["development-tools", "command-line-utilities"]
1111
edition = "2018"
1212
documentation = "https://docs.rs/crate/parsec-tool"
13+
rust-version = "1.66.0"
1314

1415
[dependencies]
1516
ansi_term = "0.12.1"

tests/ci.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ set -xeuf -o pipefail
88
# Points to Parsec's Unix Domain Socket on the CI
99
export PARSEC_SERVICE_ENDPOINT="unix:/tmp/parsec.sock"
1010
export RUST_LOG=error
11+
MSRV=1.66.0
1112

1213
#########
1314
# Build #
1415
#########
15-
RUST_BACKTRACE=1 cargo build
16-
RUST_BACKTRACE=1 cargo build --features spiffe-auth
16+
rustup toolchain install ${MSRV}
17+
RUST_BACKTRACE=1 cargo +${MSRV} build
18+
RUST_BACKTRACE=1 cargo +${MSRV} build --features spiffe-auth
1719

1820
#################
1921
# Static checks #

0 commit comments

Comments
 (0)