mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:05:31 +02:00
transfer CFLAGS from setup to run actions
This commit is contained in:
@@ -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'`"
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user