b3b4dd3d22
We need this for https://cxx.rs While we're here: - Add some more comments/links - Since the Rust bits are now at the toplevel, we can explicitly invoke `cargo` - And since we can do that, use the `+` syntax to specify the toolchain explicitly
15 lines
567 B
Bash
Executable File
15 lines
567 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
# Usually, we try to keep this to no newer than current RHEL8 rust-toolset version.
|
|
# You can find the current versions from here:
|
|
# https://access.redhat.com/documentation/en-us/red_hat_developer_tools/1/
|
|
# However, right now we are bumping to 1.48 so we can use https://cxx.rs
|
|
MINIMUM_SUPPORTED_RUST_VERSION=1.48
|
|
|
|
ci/installdeps.sh
|
|
dnf remove -y cargo
|
|
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain ${MINIMUM_SUPPORTED_RUST_VERSION} -y
|
|
export PATH="$HOME/.cargo/bin:$PATH"
|
|
cargo +${MINIMUM_SUPPORTED_RUST_VERSION} test
|