From d6e597b3916f1d61345675f3b3ebb1c7b3899c92 Mon Sep 17 00:00:00 2001 From: Taku Kudo Date: Wed, 12 Apr 2023 07:24:31 +0000 Subject: [PATCH] build wheel from sdist for testing --- .github/workflows/wheel.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/wheel.yml b/.github/workflows/wheel.yml index cb26ff8f..45c1f1a2 100644 --- a/.github/workflows/wheel.yml +++ b/.github/workflows/wheel.yml @@ -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