aboutsummaryrefslogtreecommitdiff
path: root/ci/script.sh
blob: 5b9cea7f4a80c046a8b680340e01ef5dd3aeca24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
set -ex

main() {
    if [ $TARGET = x86_64-unknown-linux-gnu ]; then
        cargo build
        cargo test --tests
        return
    fi

    xargo build --target $TARGET
    xargo test --target $TARGET --examples
}

main