From fb16f8926adfa8f3821d512f69f74664fe317de4 Mon Sep 17 00:00:00 2001 From: Ivan Date: Fri, 3 Apr 2026 13:18:02 -0500 Subject: [PATCH] fix(ci): GitHub CI script for macOS by persisting CPPFLAGS, LDFLAGS, and PKG_CONFIG_PATH to GITHUB_ENV for subsequent steps --- scripts/ci/github-install-deps.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/ci/github-install-deps.sh b/scripts/ci/github-install-deps.sh index 6d6cf57..e351914 100755 --- a/scripts/ci/github-install-deps.sh +++ b/scripts/ci/github-install-deps.sh @@ -7,7 +7,8 @@ cd "$ROOT" export GIT_TERMINAL_PROMPT=0 -# pycodec2 builds against libcodec2 +# pycodec2 builds against libcodec2. Export for this step and persist to GITHUB_ENV so +# later steps (e.g. pip install -e . for the x64 universal slice) see the same flags. if [[ "$(uname -s)" == "Darwin" ]]; then brew install codec2 _codec2_prefix="$(brew --prefix codec2)" @@ -16,6 +17,13 @@ if [[ "$(uname -s)" == "Darwin" ]]; then if [[ -d "${_codec2_prefix}/lib/pkgconfig" ]]; then export PKG_CONFIG_PATH="${_codec2_prefix}/lib/pkgconfig:${PKG_CONFIG_PATH:-}" fi + if [[ -n "${GITHUB_ENV:-}" ]]; then + { + echo "CPPFLAGS=${CPPFLAGS}" + echo "LDFLAGS=${LDFLAGS}" + echo "PKG_CONFIG_PATH=${PKG_CONFIG_PATH:-}" + } >> "$GITHUB_ENV" + fi fi python -m poetry install --no-interaction --no-ansi