aboutsummaryrefslogtreecommitdiff
path: root/ci/script.sh
blob: 212a48adff21cb8ffc9733dce181184f1fe1d0b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
set -ex

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

    xargo build --target $TARGET
    for ex in $(ls examples/*); do
        ex=$(basename $ex)
        ex=${ex%.*}
        xargo build --target $TARGET --example $ex
    done
}

main