diff --git a/.github/actions/nm-build-vllm-whl/action.yml b/.github/actions/nm-build-vllm-whl/action.yml deleted file mode 100644 index 1f382ff2e3aa..000000000000 --- a/.github/actions/nm-build-vllm-whl/action.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: build nm-vllm whl -description: 'build whl file of nm-vllm' -inputs: - python: - description: 'python version, e.g. 3.10.12' - required: true - venv: - description: 'name for python virtual environment' - required: true -outputs: - status: - description: "final build status from 'pip3 wheel dist .'" - value: ${{ steps.whl.outputs.status }} - whl: - description: 'basename for generated whl' - value: ${{ steps.whl.outputs.whl }} - tarball: - description: 'basename for generated tarball' - value: ${{ steps.whl.outputs.tarball }} - artifact: - description: 'artifact name' - value: ${{ steps.whl.outputs.artifact }} -runs: - using: composite - steps: - - id: whl - run: | - COMMIT=${{ github.sha }} - VENV="${{ inputs.venv }}-${COMMIT:0:7}" - source $(pyenv root)/versions/${{ inputs.python }}/envs/${VENV}/bin/activate - SUCCESS=0 - pip3 wheel --no-deps -w dist . || SUCCESS=$? - ls -alh dist/ - BASE=$(./.github/scripts/convert-version ${{ inputs.python }}) - WHL_FILEPATH=$(find dist -iname "*nm_vllm*${BASE}*.whl") - WHL=$(basename ${WHL_FILEPATH}) - echo "whl=${WHL}" >> "$GITHUB_OUTPUT" - # generate .tar.gz - (exit $SUCCESS) && (python3 setup.py sdist) || SUCCESS=$? - ls -alh dist/ - TARBALL_FILEPATH=$(find dist -iname "*nm-vllm*.tar.gz") - TARBALL=$(basename ${TARBALL_FILEPATH}) - echo "status=${SUCCESS}" >> "$GITHUB_OUTPUT" - echo "tarball=${TARBALL}" >> "$GITHUB_OUTPUT" - ARTIFACT=`echo "${WHL}" | sed 's/.whl//g'` - echo "artifact=${ARTIFACT}" >> "$GITHUB_OUTPUT" - exit ${SUCCESS} - shell: bash diff --git a/.github/actions/nm-build-vllm/action.yml b/.github/actions/nm-build-vllm/action.yml index 277ac4c8f24d..e79cac63fab9 100644 --- a/.github/actions/nm-build-vllm/action.yml +++ b/.github/actions/nm-build-vllm/action.yml @@ -48,7 +48,9 @@ runs: BASE=$(./.github/scripts/convert-version ${{ inputs.python }}) ls -alh dist WHL_FILEPATH=$(find dist -iname "*${BASE}*.whl") - WHL=$(basename ${WHL_FILEPATH}) + RENAME=$(echo ${WHL_FILEPATH} | sed -e 's/linux_x86_64/manylinux_2_17_x86_64/') + mv ${WHL_FILEPATH} ${RENAME} + WHL=$(basename ${RENAME}) echo "whl=${WHL}" >> "$GITHUB_OUTPUT" if [ ${SUCCESS} -ne 0 ]; then exit 1