mirror of
https://github.com/ankitects/anki.git
synced 2026-07-21 23:46:48 -04:00
25 lines
501 B
Bash
Executable File
25 lines
501 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if [ "$BUILD_ROOT" == "" ]; then
|
|
out=$(pwd)/out
|
|
else
|
|
out="$BUILD_ROOT"
|
|
fi
|
|
export CARGO_TARGET_DIR=$out/rust
|
|
export RECONFIGURE_KEY="${MAC_X86};${LIN_ARM64};${SOURCEMAP};${HMR};${CI}"
|
|
|
|
if [ "$CI" = "true" ] && [ -z "$RELEASE" ]; then
|
|
runner_profile=ci
|
|
else
|
|
runner_profile=release
|
|
fi
|
|
|
|
if [ "$SKIP_RUNNER_BUILD" = "1" ]; then
|
|
echo "Runner not rebuilt."
|
|
else
|
|
cargo build -p runner --profile $runner_profile
|
|
fi
|
|
exec $out/rust/$runner_profile/runner build -- $*
|