anki/.buildkite/linux/release-entrypoint
Damien Elmes c6f429ab17 Add option to use LTO in release builds
Shrinks rslib.so from about 40MB to about 26MB, at the cost of considerably
higher build time in a release build.
2023-07-02 18:22:44 +10:00

15 lines
226 B
Bash
Executable File

#!/bin/bash
set -e
export PATH="$PATH:/state/rust/cargo/bin"
export BUILD_ROOT=/state/build
export RELEASE=2
ln -sf out/node_modules .
if [ $(uname -m) = "aarch64" ]; then
./ninja wheels:anki
else
./ninja bundle
fi