Skip to content

Commit

Permalink
CI: Pin dependencies required for MSRV build
Browse files Browse the repository at this point in the history
Whinge, whinge, whinge, and pin the dependencies.
  • Loading branch information
tcharding committed Jul 12, 2023
1 parent 31237ff commit 0e0dcb7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contrib/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ cargo test -- --ignored --exact 'tests::test_panic_raw_ctx_should_terminate_abno
# Make all cargo invocations verbose
export CARGO_TERM_VERBOSE=true

# Pin dependencies as required if we are using MSRV toolchain.
if cargo --version | grep "1\.48"; then
# 1.0.157 uses syn 2.0 which requires edition 2021
cargo update -p serde_json --precise 1.0.99
cargo update -p serde --precise 1.0.156
fi

# Defaults / sanity checks
cargo build --all
cargo test --all
Expand Down

0 comments on commit 0e0dcb7

Please sign in to comment.