Skip to content

Commit

Permalink
Update ci.sh to use MSRV for builds
Browse files Browse the repository at this point in the history
Also add rust version to the toml.

Signed-off-by: Gowtham Suresh Kumar <[email protected]>
  • Loading branch information
gowthamsk-arm committed Oct 10, 2023
1 parent d3110f0 commit 0d220a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ keywords = ["parsec", "cli", "tool"]
categories = ["development-tools", "command-line-utilities"]
edition = "2018"
documentation = "https://docs.rs/crate/parsec-tool"
rust-version = "1.66.0"

[dependencies]
ansi_term = "0.12.1"
Expand Down
6 changes: 4 additions & 2 deletions tests/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ set -xeuf -o pipefail
# Points to Parsec's Unix Domain Socket on the CI
export PARSEC_SERVICE_ENDPOINT="unix:/tmp/parsec.sock"
export RUST_LOG=error
MSRV=1.66.0

#########
# Build #
#########
RUST_BACKTRACE=1 cargo build
RUST_BACKTRACE=1 cargo build --features spiffe-auth
rustup toolchain install ${MSRV}
RUST_BACKTRACE=1 cargo build --features spiffe-auth RUST_BACKTRACE=1 cargo +${MSRV} build
RUST_BACKTRACE=1 cargo +${MSRV} build --features spiffe-auth

#################
# Static checks #
Expand Down

0 comments on commit 0d220a8

Please sign in to comment.