]> git.proxmox.com Git - cargo.git/blame - ci/fetch-smoke-test.sh
Contrib: Add docs on the rustbot ready command
[cargo.git] / ci / fetch-smoke-test.sh
CommitLineData
90b2ef02
EH
1#!/bin/bash
2# This script builds with static curl, and verifies that fetching works.
3
4set -ex
5
6if [[ -z "$RUNNER_TEMP" ]]
7then
8 echo "RUNNER_TEMP must be set"
9 exit 1
10fi
11
12if [ ! -f Cargo.toml ]; then
13 echo "Must be run from root of project."
14 exit 1
15fi
16
17
18# Building openssl on Windows is a pain.
19if [[ $(rustc -Vv | grep host:) != *windows* ]]; then
20 FEATURES='vendored-openssl,curl-sys/static-curl,curl-sys/force-system-lib-on-osx'
21 export LIBZ_SYS_STATIC=1
22fi
23
24cargo build --features "$FEATURES"
25export CARGO_HOME=$RUNNER_TEMP/chome
26target/debug/cargo fetch
27rm -rf $CARGO_HOME