We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/OpenAstronomy/github-actions-workflows/blob/main/.github/workflows/publish.yml uses both shell: sh and shell: bash which is really confusing. I find that conditional does not work at #149 (comment) and I am not sure how to fix it here.
shell: sh
shell: bash
Also see liberfa/pyerfa#111
The text was updated successfully, but these errors were encountered:
The error is happening because the $( ... ) in
$( ... )
env: | CIBW_ENVIRONMENT: 'PIP_PRE=$( if [ "${CIBW_BUILD:0:5}" == "cp312" ]; then echo 1; else echo 0; fi )'
is being evaluated before it is passed to cibuildwheel, which it should not, because $CIBW_BUILD is not set at that stage.
$CIBW_BUILD
I tried escaping it
env: | CIBW_ENVIRONMENT: 'PIP_PRE=\$( if [ "\${CIBW_BUILD:0:5}" == "cp312" ]; then echo 1; else echo 0; fi )'
so that it is evaluated inside cibuildwheel, but cibuildwheel then gives an error: https://github.com/ConorMacBride/test-workflows/actions/runs/5944886137/job/16123000921#step:7:279.
Not sure why. I'll take another look at this later.
Sorry, something went wrong.
Thanks for investigating! If this cannot work, then what would be better?
CIBW_ENVIRONMENT
No branches or pull requests
https://github.com/OpenAstronomy/github-actions-workflows/blob/main/.github/workflows/publish.yml uses both
shell: sh
andshell: bash
which is really confusing. I find that conditional does not work at #149 (comment) and I am not sure how to fix it here.Also see liberfa/pyerfa#111
The text was updated successfully, but these errors were encountered: