Skip to content

Commit c772f1d

Browse files
committed
Repair manylinux wheels, 2.
1 parent 7d95613 commit c772f1d

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

.github/actions/upload-artifacts/action.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: "Make and upload artifacts"
33
inputs:
44
make-binary:
55
required: true
6-
path:
6+
repair-manylinux:
77
required: false
8-
default: dist/
8+
default: false
99

1010
runs:
1111
using: "composite"
@@ -16,8 +16,17 @@ runs:
1616
- run: make distribute-source
1717
shell: bash
1818
if: inputs.make-binary == 'false'
19+
- run: find dist/*.whl | auditwheel repair
20+
shell: bash
21+
if: inputs.make-binary == 'true' && inputs.repair-manylinux == 'true'
22+
- uses: actions/upload-artifact@v2
23+
with:
24+
path: |
25+
wheelhouse/*.whl
26+
if: inputs.make-binary == 'true' && inputs.repair-manylinux == 'true'
1927
- uses: actions/upload-artifact@v2
2028
with:
2129
path: |
22-
${{ inputs.path }}*.tar.gz
23-
${{ inputs.path }}*.whl
30+
dist/*.tar.gz
31+
dist/*.whl
32+
if: inputs.make-binary == 'false' || inputs.repair-manylinux == 'false'

.github/workflows/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,10 @@ jobs:
6161
use-specific-python-version: true
6262
specific-python-version: ${{ matrix.py-version }}
6363
- run: make test
64-
- run: find dist/*.whl | auditwheel repair
6564
- uses: ./.github/actions/upload-artifacts
6665
with:
6766
make-binary: false
68-
path: wheelhouse/
67+
repair-manylinux: true
6968
if: ${{ fromJSON(needs.pass-env.outputs.is-from-tag-str) }}
7069
build-macos:
7170
needs: pass-env

0 commit comments

Comments
 (0)