Skip to content

Commit

Permalink
silly workaround for missing github-action native replace
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianPugh committed Feb 27, 2024
1 parent 0bfa604 commit c621b01
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/build_wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ jobs:
fetch-depth: 0
submodules: "recursive"

- name: Sanitize matrix.cibw_build
id: sanitize_build
run: echo "CIBW_BUILD_SANITIZED=$(echo '${{ matrix.cibw_build }}' | sed 's/\*/_/g')" >> $GITHUB_ENV
shell: bash

- name: Set up QEMU
if: matrix.cibw_archs != 'x86_64'
uses: docker/setup-qemu-action@v2
Expand All @@ -74,7 +79,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}-${{ replace(matrix.cibw_build, '-*', '' }}-${{ matrix.cibw_archs }}
name: wheels-${{ matrix.os }}-${{ env.CIBW_BUILD_SANITIZED }}-${{ matrix.cibw_archs }}
path: wheelhouse/*.whl

build_wheels_macos:
Expand All @@ -95,6 +100,11 @@ jobs:
fetch-depth: 0
submodules: "recursive"

- name: Sanitize matrix.cibw_build
id: sanitize_build
run: echo "CIBW_BUILD_SANITIZED=$(echo '${{ matrix.cibw_build }}' | sed 's/\*/_/g')" >> $GITHUB_ENV
shell: bash

- name: Set up python 3.12
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -126,7 +136,7 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}-${{ replace(matrix.cibw_build, '-*', '' }}-${{ matrix.cibw_archs }}
name: wheels-${{ matrix.os }}-${{ env.CIBW_BUILD_SANITIZED }}-${{ matrix.cibw_archs }}
path: wheelhouse/*.whl

build_wheels_macos_arm64:
Expand All @@ -145,6 +155,11 @@ jobs:
fetch-depth: 0
submodules: "recursive"

- name: Sanitize matrix.cibw_build
id: sanitize_build
run: echo "CIBW_BUILD_SANITIZED=$(echo '${{ matrix.cibw_build }}' | sed 's/\*/_/g')" >> $GITHUB_ENV
shell: bash

- uses: actions/setup-python@v5
with:
python-version: "3.12"
Expand Down Expand Up @@ -181,7 +196,7 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}-${{ replace(matrix.cibw_build, '-*', '' }}-${{ matrix.cibw_archs }}
name: wheels-${{ matrix.os }}-${{ env.CIBW_BUILD_SANITIZED }}-${{ matrix.cibw_archs }}
path: ./wheelhouse/*.whl

upload_to_pypi:
Expand Down

0 comments on commit c621b01

Please sign in to comment.