git.lucas.co / cce-ui
GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git

scripts/check-mac (886B)

 1 #!/usr/bin/env bash
 2 # check-mac — does cce-ui still build for macOS? Type-checks the library,
 3 # the demo, the examples and the tests for aarch64-apple-darwin, with and
 4 # without the optional features. On Linux nothing here can be LINKED (no
 5 # macOS SDK, no Apple linker), so this is a type-check only: the AppKit
 6 # shell (src/mac) and the MoltenVK path of the Vulkan renderer are checked
 7 # against their bindings, never run. On a Mac, `cargo run` is the real test.
 8 set -euo pipefail
 9 cd "$(dirname "$0")/.."
10 target=aarch64-apple-darwin
11 if ! rustup target list --installed 2>/dev/null | grep -qx "$target"; then
12     echo "check-mac: the $target target is not installed:" >&2
13     echo "    rustup target add $target" >&2
14     exit 2
15 fi
16 cargo check --target "$target" --lib --bins --examples --tests
17 cargo check --target "$target" --lib --features markdown,doc_editor
18 echo "check-mac: ok"