mirror of
https://github.com/openai/codex.git
synced 2026-09-06 15:29:32 +00:00
## What changed Add the manual `//third_party/voice:native_runtime` target for macOS and GNU Linux. It consumes the native prefix archive, validates the completed build receipt against the target and source manifest, inspects libraries, and prepares verified copies using the existing platform policies. Record the build commit through Bazel workspace status and include it in runtime receipts. Reject invalid or ambiguous commit metadata and escaping library aliases. Keep macOS preparation local and allow the system `libc++.1.dylib` dependency. ## Testing Add tests for receipt validation, inspection ordering and failures, invalid commit metadata, and escaping archive links. Add a macOS integration test for preparing real libraries from a sandbox-linked archive with native aliases and either an absent or empty output directory. GitOrigin-RevId: 23717ab33d1d3da5fb0042c1cc8e8efcd333c386
16 lines
355 B
Bash
Executable File
16 lines
355 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
if [[ -n "${STABLE_GIT_COMMIT:-}" ]]; then
|
|
build_commit="${STABLE_GIT_COMMIT}"
|
|
elif build_commit="$(git rev-parse --verify HEAD 2>/dev/null)"; then
|
|
:
|
|
elif [[ -n "${GITHUB_SHA:-}" ]]; then
|
|
build_commit="${GITHUB_SHA}"
|
|
else
|
|
build_commit="unknown"
|
|
fi
|
|
|
|
printf 'STABLE_GIT_COMMIT %s\n' "${build_commit}"
|