transfer CFLAGS from setup to run actions

This commit is contained in:
Erica Portnoy
2026-04-17 12:51:00 -07:00
parent 81d482dcac
commit 43626306a1
3 changed files with 7 additions and 1 deletions
+3
View File
@@ -11,6 +11,8 @@ inputs:
description: 'a pip flag'
TOXENV:
description: 'the tox environment to run'
CFLAGS:
description: 'needed to help pip find augeas headers on mac'
runs:
using: composite
@@ -29,6 +31,7 @@ runs:
AWS_SECRET_ACCESS_KEY: "${{ inputs.AWS_SECRET_ACCESS_KEY }}"
PIP_USE_PEP517: "${{ inputs.PIP_USE_PEP517 }}"
TOXENV: "${{ inputs.TOXENV }}"
CFLAGS: "${{ inputs.CFLAGS }}"
run: |-
set -e
export TARGET_BRANCH="`echo "${BUILD_SOURCEBRANCH}" | sed -E 's!refs/(heads|tags)/!!g'`"
+2 -1
View File
@@ -28,7 +28,8 @@ runs:
brew update
brew install augeas
BREW_PREFIX=$(brew --prefix augeas)
export CFLAGS="$CFLAGS -I$BREW_PREFIX/include -L$BREW_PREFIX/lib"
CFLAGS="$CFLAGS -I$BREW_PREFIX/include -L$BREW_PREFIX/lib"
echo "CFLAGS=$CFLAGS" >> $GITHUB_OUTPUT
shell: bash
- name: Install Linux dependencies
if: runner.os == 'Linux'
@@ -46,6 +46,7 @@ jobs:
uses: actions/checkout@v6.0.2
- name: Setup tox
uses: "./.github/actions/setup_tox"
id: setup
with:
PYTHON_VERSION: "${{ matrix.PYTHON_VERSION }}"
- name: Run tox
@@ -53,6 +54,7 @@ jobs:
with:
PIP_USE_PEP517: "${{ matrix.PIP_USE_PEP517 }}"
TOXENV: "${{ matrix.TOXENV }}"
CFLAGS: "${{ steps.setup.outputs.CFLAGS }}"
- name: Upload coverage
uses: "./.github/actions/upload_coverage"
test_sphinx_builds: