Cloudflare Pages / Build and verify the site (push) Successful in 3m29s
Use the verified dependency lock across native hosts and bundled apps. Preserve saved styles, local app reactivation, and offline packages while integrating the latest practice, Habits, Lumi, and figure preview updates.
18 lines
879 B
Bash
18 lines
879 B
Bash
#!/bin/sh
|
|
set -eu
|
|
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
bin=${1:-"$root/build/packages/ziran/build/bin"}
|
|
work=$(mktemp -d "$root/build/settings-mutation-test.XXXXXX")
|
|
trap 'rm -rf "$work"' EXIT HUP INT TERM
|
|
cd "$root"
|
|
sh "$root/scripts/run-ziran.sh" "$bin/ziran" build --project --offline ${PACKAGE_FLAGS:-} \
|
|
--target=c --no-main --root "$root" \
|
|
-o "$work/c" "$root/tests/settings_mutation_behavior.zi"
|
|
find "$work/c" -name '*.c' -type f -exec sh -c 'exec "$@" -lm' sh \
|
|
"${CC:-cc}" -std=c11 -ffunction-sections -fdata-sections \
|
|
-Wl,--gc-sections -Wl,--wrap=save_settings -Wl,--wrap=LocaleText \
|
|
-I"$root/build/packages/ziran/include" -I"$work/c" -I"$work/c/tests" \
|
|
-o "$work/test" {} +
|
|
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u GDK_DISPLAY "$work/test"
|
|
echo "Settings reminder edits/addition and break timer mutations passed"
|