2018-12-15 13:49:22 -08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
eval "$(ejson2env .buildkite/env/secrets.ejson)"
|
2018-06-30 21:51:15 -07:00
|
|
|
|
2018-09-07 09:08:08 -07:00
|
|
|
# Ensure the pattern "+++ ..." never occurs when |set -x| is set, as buildkite
|
|
|
|
# interprets this as the start of a log group.
|
|
|
|
# Ref: https://buildkite.com/docs/pipelines/managing-log-output
|
|
|
|
export PS4="++"
|
2018-06-30 21:51:15 -07:00
|
|
|
|
|
|
|
#
|
|
|
|
# Restore target/ from the previous CI build on this machine
|
|
|
|
#
|
2020-08-26 11:35:41 -07:00
|
|
|
eval "$(ci/channel-info.sh)"
|
2022-02-08 14:35:50 -08:00
|
|
|
eval "$(ci/sbf-tools-info.sh)"
|
2022-02-15 15:39:38 -08:00
|
|
|
source "ci/rust-version.sh"
|
|
|
|
HOST_RUST_VERSION="$rust_stable"
|
|
|
|
pattern='^[0-9]+\.[0-9]+\.[0-9]+$'
|
|
|
|
if [[ ${HOST_RUST_VERSION} =~ ${pattern} ]]; then
|
|
|
|
HOST_RUST_VERSION="${rust_stable%.*}"
|
2022-07-18 00:39:21 -07:00
|
|
|
fi
|