aboutsummaryrefslogtreecommitdiff
path: root/ci/script.sh
blob: 222a1e02638bda51bd614f6b0f357b4346e6fa99 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
set -euxo pipefail

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

    case $TARGET in
        thumbv7em-none-eabi*)
            xargo check --target $TARGET --features cm7-r0p1
            xargo check --target $TARGET --features cm7-r0p1 --examples
        ;;
    esac

    xargo check --target $TARGET
    xargo check --target $TARGET --examples
}

main