Skip to content

Commit

Permalink
Use better naming for the artifacts : <os>-<architecture>-<Python ver…
Browse files Browse the repository at this point in the history
…sion>

Use better naming for the artifacts
  • Loading branch information
schroedtert authored Apr 26, 2024
1 parent 1e1081c commit 2ea22f4
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,22 @@ jobs:
CIBW_BUILD: ${{ matrix.cibw_build }}
CIBW_ARCHS: ${{ matrix.cibw_archs }}

- name: Extract Python Version (Unix/Mac)
shell: bash
run: echo "PYTHON_VERSION=$(echo ${{ matrix.cibw_build }} | cut -d'-' -f1)" >> $GITHUB_ENV
if: runner.os != 'Windows'

- name: Extract Python Version (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
$pythonVersion = "${{ matrix.cibw_build }}" -split '-' | Select-Object -First 1
$pythonVersion = $pythonVersion.Trim()
echo "PYTHON_VERSION=$pythonVersion" | Out-File -Append -FilePath $env:GITHUB_ENV
- uses: actions/upload-artifact@v4
with:
name: python-packages-${{ matrix.os }}-${{ matrix.cibw_archs }}-${{ strategy.job-index }}
name: python-packages-${{ matrix.os }}-${{ matrix.cibw_archs }}-${{ env.PYTHON_VERSION }}
path: ./wheelhouse/*.whl
if-no-files-found: error

Expand Down

0 comments on commit 2ea22f4

Please sign in to comment.