summaryrefslogtreecommitdiff
path: root/ci/script.sh
blob: 6b85502462240cc3f8bcfd4a0cf81f0e88462fe3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
set -euxo pipefail

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