Anki/.buildkite/linux/entrypoint
Damien Elmes 1a7f8b4fdf Fix cargo deny in CI
The 0.14.12 release appears to have broken "-A duplicate". Fix by
updating our checks to use the latest release/format.

Also update iana-time-zone, which was yanked, and ignore safemem,
which is only used when bundling.
2024-02-24 15:22:57 +07:00

29 lines
488 B
Bash
Executable file

#!/bin/bash
set -e
export PATH="$PATH:/state/rust/cargo/bin"
export BUILD_ROOT=/state/build
export ONLINE_TESTS=1
echo "--- Install n2"
./tools/install-n2
echo "+++ Building and testing"
ln -sf out/node_modules .
if [ "$CLEAR_RUST" = "1" ]; then
rm -rf $BUILD_ROOT/rust
fi
./ninja pylib qt check
echo "--- Ensure libs importable"
SKIP_RUN=1 ./run
echo "--- Check Rust libs"
cargo install cargo-deny --version 0.14.12
cargo deny check
echo "--- Cleanup"
rm -rf /tmp/* || true