Skip to content

Commit

Permalink
build wheel from sdist for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
taku910 committed Apr 12, 2023
1 parent f2884a1 commit d6e597b
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,19 @@ jobs:
CIBW_SKIP: "pp* *-musllinux_*"
CIBW_BUILD_VERBOSITY: 1

- name: Build sdist
- name: Build sdist archive
working-directory: ${{github.workspace}}/python
run: |
sh build_sdist.sh
python -m pip wheel dist/sentencepiece-*.tar.gz --verbose
run: sh build_sdist.sh

- name: Fetch sdist archive
working-directory: ${{github.workspace}}/python
id: sdist
with:
files: dist/*.tar.gz

- name: Build wheel from sdist
working-directory: ${{github.workspace}}/python
run: python -m pip wheel "${{ steps.sdist.outputs.paths }}" --verbose

- name: Copy sdist
working-directory: ${{github.workspace}}/python
Expand Down

0 comments on commit d6e597b

Please sign in to comment.