Branchwell

Glimmer / app / native / scripts / core-checks.sh

1#!/bin/zsh
2# Compiles and runs the core checks (recurrence, statistics, persistence, backup and journal merge).
3set -euo pipefail
4native="${0:A:h:h}"
5build="$(mktemp -d)"
6trap 'rm -rf "$build"' EXIT
7xcrun swiftc -parse-as-library "$native/Checks/CoreChecks.swift" \
8 "$native"/Glimmer/{Catalog,Journal,JournalStore,JournalReplica,JournalCloud,ReflectionSummary,EarnedCoins,ReadingMotion,EditorialLibrary,GalleryCatalog,GalleryAmbience,Gallery,ReaderRanks,Design,AgentAccess,AgentSetup,AgentSkillInstaller,PersonalReminders,Toolkit,CoachPrompts,Tactile,Glyph,GlyphMap,SupportReminder,InkspringLink}.swift \
9 -o "$build/core-checks"
10"$build/core-checks" "$native" "$@"