This repository was archived by the owner on Oct 11, 2024. It is now read-only.
Commit bdfdb77 1 parent 25bd431 commit bdfdb77 Copy full SHA for bdfdb77
File tree 3 files changed +23
-4
lines changed
3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ outputs:
14
14
whl :
15
15
description : ' basename for generated whl'
16
16
value : ${{ steps.whl.outputs.whl }}
17
+ tarball :
18
+ description : ' basename for generated tarball'
19
+ value : ${{ steps.whl.outputs.tarball }}
20
+ artifact :
21
+ description : ' artifact name'
22
+ value : ${{ steps.whl.outputs.artifact }}
17
23
runs :
18
24
using : composite
19
25
steps :
@@ -24,11 +30,19 @@ runs:
24
30
source $(pyenv root)/versions/${{ inputs.python }}/envs/${VENV}/bin/activate
25
31
SUCCESS=0
26
32
pip3 wheel --no-deps -w dist . || SUCCESS=$?
27
- echo "status=${SUCCESS}" >> "$GITHUB_OUTPUT"
28
33
ls -alh dist/
29
34
BASE=$(./.github/scripts/convert-version ${{ inputs.python }})
30
35
WHL_FILEPATH=$(find dist -iname "*nm_vllm*${BASE}*.whl")
31
36
WHL=$(basename ${WHL_FILEPATH})
32
37
echo "whl=${WHL}" >> "$GITHUB_OUTPUT"
38
+ # generate .tar.gz
39
+ (exit $SUCCESS) && (python3 setup.py sdist) || SUCCESS=$?
40
+ ls -alh dist/
41
+ TARBALL_FILEPATH=$(find dist -iname "*nm-vllm*.tar.gz")
42
+ TARBALL=$(basename ${TARBALL_FILEPATH})
43
+ echo "status=${SUCCESS}" >> "$GITHUB_OUTPUT"
44
+ echo "tarball=${TARBALL}" >> "$GITHUB_OUTPUT"
45
+ ARTIFACT=`echo "${WHL}" | sed 's/.whl//g'`
46
+ echo "artifact=${ARTIFACT}" >> "$GITHUB_OUTPUT"
33
47
exit ${SUCCESS}
34
48
shell : bash
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ inputs:
16
16
whl :
17
17
description : ' whl file tested'
18
18
required : true
19
+ tarball :
20
+ description : ' tar.gz file tested'
21
+ required : true
19
22
runs :
20
23
using : composite
21
24
steps :
34
37
echo "| branch name: | '${{ github.ref_name }}' |" >> $GITHUB_STEP_SUMMARY
35
38
echo "| python: | ${{ inputs.python }} |" >> $GITHUB_STEP_SUMMARY
36
39
echo "| whl: | ${{ inputs.whl }} |" >> $GITHUB_STEP_SUMMARY
40
+ echo "| tarball: | ${{ inputs.tarball }} |" >> $GITHUB_STEP_SUMMARY
37
41
shell: bash
Original file line number Diff line number Diff line change @@ -121,12 +121,12 @@ jobs:
121
121
python : ${{ inputs.python }}
122
122
venv : ${{ env.VENV_BUILD_BASE }}
123
123
124
- - name : upload whl
124
+ - name : upload dist
125
125
uses : actions/upload-artifact@v4
126
126
if : success() || failure()
127
127
with :
128
- name : ${{ steps.build_whl.outputs.whl }}
129
- path : dist/${{ steps.build_whl.outputs.whl }}
128
+ name : ${{ steps.build_whl.outputs.artifact }}
129
+ path : dist/
130
130
retention-days : 15
131
131
132
132
- name : summary
@@ -137,6 +137,7 @@ jobs:
137
137
testmo_run_url : https://neuralmagic.testmo.net/automation/runs/view/${{ steps.create_testmo_run.outputs.id }}
138
138
python : ${{ inputs.python }}
139
139
whl : ${{ steps.build_whl.outputs.whl }}
140
+ tarball : ${{ steps.build_whl.outputs.tarball }}
140
141
141
142
- name : complete testmo run
142
143
uses : ./.github/actions/nm-testmo-run-complete/
You can’t perform that action at this time.
0 commit comments