chore(package): update build scripts in package.json to use cross-env for platform-specific builds and add codec2 installation in GitHub CI script for macOS

This commit is contained in:
Ivan
2026-04-03 12:58:17 -05:00
parent 8e192558b1
commit a298aafb67
2 changed files with 20 additions and 8 deletions
+11
View File
@@ -7,5 +7,16 @@ cd "$ROOT"
export GIT_TERMINAL_PROMPT=0
# pycodec2 builds against libcodec2
if [[ "$(uname -s)" == "Darwin" ]]; then
brew install codec2
_codec2_prefix="$(brew --prefix codec2)"
export CPPFLAGS="${CPPFLAGS:-} -I${_codec2_prefix}/include"
export LDFLAGS="${LDFLAGS:-} -L${_codec2_prefix}/lib"
if [[ -d "${_codec2_prefix}/lib/pkgconfig" ]]; then
export PKG_CONFIG_PATH="${_codec2_prefix}/lib/pkgconfig:${PKG_CONFIG_PATH:-}"
fi
fi
python -m poetry install --no-interaction --no-ansi
pnpm install --frozen-lockfile