-
DescriptionUsing a custom default shell in the workflow does not seem to be inherited by the cibuildwheel action. name: Build
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.sys.os }}
runs-on: ${{ matrix.sys.os }}
strategy:
fail-fast: false
matrix:
sys:
- { os: windows-2019, shell: "msys2 {0}" }
- { os: ubuntu-20.04, shell: bash }
defaults:
run:
shell: ${{ matrix.sys.shell }}
steps:
- uses: actions/checkout@v3
- if: runner.os == 'Windows'
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
path-type: inherit
install: >-
mingw-w64-x86_64-gcc-fortran
- name: Build wheels
# Using a direct call to pipx works
# run: |
# pipx run cibuildwheel
uses: pypa/[email protected]
env:
CIBW_ARCHS_WINDOWS: auto64
CIBW_ENVIRONMENT_WINDOWS: CC=gcc CXX=g++ FC=gfortran
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
Build loghttps://github.com/awvwgk/fpm-on-wheels/actions/runs/4473871284/jobs/7861729714 CI configNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Composite actions are not affected by setting defaults. (Neither are JS or docker actions). Otherwise, setting a default shell would break the action (different shells have different syntax). If you have to use a special shell, you’ll need to use |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply @henryiii, not sure why it took me so long to get to the bottom of this. (FYI feel free to convert this to an Answered Q&A Discussion to not crowd the number of issues) |
Beta Was this translation helpful? Give feedback.
Composite actions are not affected by setting defaults. (Neither are JS or docker actions). Otherwise, setting a default shell would break the action (different shells have different syntax).
If you have to use a special shell, you’ll need to use
run: pipx
.