86ce9ea1f5
I think we did this at some point, but then stopped. Prep for https://github.com/coreos/rpm-ostree/pull/2413 because we'll need a full build of the C++ side too in order to `cargo test`.
16 lines
584 B
Bash
Executable File
16 lines
584 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 rust
|
|
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain ${MINIMUM_SUPPORTED_RUST_VERSION} -y
|
|
export PATH="$HOME/.cargo/bin:$PATH"
|
|
ci/build.sh
|
|
cargo +${MINIMUM_SUPPORTED_RUST_VERSION} test
|