summaryrefslogtreecommitdiffstats
path: root/ci/install.sh
blob: 42c96b443c54f4e9181092496acc348886b437bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
set -euxo pipefail

main() {
    rustup component add rust-src
    SYSROOT=$(rustc --print sysroot)
    if [[ ! "$SYSROOT" =~ "$TARGET" ]]; then
        rustup target add $TARGET
    else
        echo "Target $TARGET is already installed"
    fi
}

main