Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI tests to use local cross build. #881

Merged
merged 1 commit into from
Jun 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ set -euo pipefail
# installed version on macOS. likewise, "${var[@]}" is an unbound
# error if var is an empty array.

ci_dir=$(dirname "${BASH_SOURCE[0]}")
ci_dir=$(realpath "${ci_dir}")
project_home=$(dirname "${ci_dir}")

function retry {
local tries="${TRIES-5}"
local timeout="${TIMEOUT-1}"
Expand Down Expand Up @@ -41,15 +45,15 @@ main() {
local td=

retry cargo fetch
cargo install --force --path . --debug
cargo build

# Unset RUSTFLAGS
export RUSTFLAGS=""

export QEMU_STRACE=1

# ensure we have the proper toolchain and optional rust flags
export CROSS=(cross)
export CROSS=("${project_home}/target/debug/cross")
export CROSS_FLAGS=""
if (( ${BUILD_STD:-0} )); then
# use build-std instead of xargo, due to xargo being
Expand Down