Skip to content

Commit 3631095

Browse files
committed
- use output variable for artifact name
1 parent 455db48 commit 3631095

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/experimental_wheels.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,28 @@ jobs:
6767
cmake --version
6868
swig -version
6969

70-
7170
- name: Build Wheels
7271
run: |
7372
python -m cibuildwheel --output-dir wheelhouse
7473
env:
7574
CIBW_BUILD: ${{ matrix.python_version }}
7675
CIBW_ARCHS_MACOS: x86_64 arm64
76+
CIBW_BEFORE_BUILD_LINUX: "pip install swig==4.4.1"
7777
CIBW_SKIP: "*-musllinux* cp36-* cp37-* cp38-* *-win32 *-manylinux_i686"
7878

79+
- name: Set artifact name
80+
id: artifact-name
81+
run: |
82+
python_tag="${CIBW_BUILD%-*}"
83+
echo "name=libSBML-experimental-${{ matrix.os }}-${python_tag}-${{ strategy.job-index }}" >> $GITHUB_OUTPUT
84+
env:
85+
CIBW_BUILD: ${{ matrix.python_version }}
86+
7987
- name: Upload wheels
8088
uses: actions/upload-artifact@v4
8189
with:
8290
path: wheelhouse/*.whl
83-
name: libSBML-experimental-${{ matrix.os }}-${{ strategy.job-index }}
91+
name: ${{ steps.artifact-name.outputs.name }}
8492

8593
merge_wheels:
8694
needs: [build_wheels]

0 commit comments

Comments
 (0)