summaryrefslogtreecommitdiffhomepage
path: root/ci/check-rust.sh
blob: d42784d36e02b264d2b1fa8bc3f8f813e7a00568 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash

set -eux

export RUSTFLAGS="--deny warnings"

# Build WireGuard Go
if [[ "$(uname -s)" != "MINGW"* ]]; then
    ./wireguard/build-wireguard-go.sh
fi

# Build Rust crates
source env.sh
time cargo build --locked --verbose

# Test Rust crates
time cargo test --locked --verbose