Skip to content

Commit

Permalink
test loacl sdist build on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
taku910 committed Apr 12, 2023
1 parent 609a2b7 commit f2884a1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,21 @@ jobs:

- name: Build sdist
working-directory: ${{github.workspace}}/python
if: runner.os == 'macOS'
run: |
sh build_sdist.sh
cp -f dist/*.tar.gz wheelhouse/
python -m pip wheel dist/sentencepiece-*.tar.gz --verbose
- name: Build wheel from sdist
- name: Copy sdist
working-directory: ${{github.workspace}}/python
run: python -m pip wheel dist/sentencepiece-*.tar.gz --verbose
if: runner.os == 'macOS'
run: cp -f dist/*.tar.gz wheelhouse/

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
path: |
./python/wheelhouse/*.whl
./python/dist/*.tar.gz
./python/wheelhouse/*.tar.gz
- name: Upload wheel release
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit f2884a1

Please # to comment.