From f1737fa35ab3bea36e324d355aa8002d2c0c60e2 Mon Sep 17 00:00:00 2001 From: dhuangnm <74931910+dhuangnm@users.noreply.github.com> Date: Thu, 4 Apr 2024 18:37:08 -0400 Subject: [PATCH] rename wheels to manylinux and remove unused action (#167) rename wheels to manylinux and remove unused action Co-authored-by: dhuangnm --- .github/actions/nm-build-vllm-whl/action.yml | 48 -------------------- .github/actions/nm-build-vllm/action.yml | 4 +- 2 files changed, 3 insertions(+), 49 deletions(-) delete mode 100644 .github/actions/nm-build-vllm-whl/action.yml 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 1f382ff2e3aae..0000000000000 --- 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 277ac4c8f24d6..e79cac63fab94 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