6363 type : string
6464 required : true
6565 repo :
66- description : " REPO to build, e.g. 'nm-vllm-ent '"
66+ description : " REPO to build, e.g. 'facebookresearch/xformers '"
6767 type : string
6868 required : true
6969 branch :
7474 description : " python version, e.g. 3.12.5"
7575 type : string
7676 default : 3.12.5
77- partitions_file :
78- description : " file defining the test partitions "
77+ package_name :
78+ description : " package name, e.g. 'xformers' "
7979 type : string
8080 required : true
8181 target_device :
@@ -116,6 +116,12 @@ jobs:
116116 tarfile : fromJSON(${{ steps.build.outputs.outputs }}).tarfile
117117
118118 steps :
119+ - name : checkout nm-cicd
120+ id : checkout-nm-cicd
121+ uses : actions/checkout@v4
122+ with :
123+ ref : ${{ inputs.gitref }}
124+
119125 - name : checkout ${{ inputs.repo }}
120126 id : checkout-repo
121127 uses : actions/checkout@v4
@@ -124,7 +130,7 @@ jobs:
124130 ref : ${{ inputs.branch }}
125131 fetch-depth : 0
126132 token : ${{ secrets.CICD_GITHUB_PAT }}
127- path : ${{ inputs.repo }}
133+ path : ${{ env.CLIENT_PATH }}
128134 submodules : recursive
129135
130136 - name : ' Authenticate to Google Cloud'
@@ -163,26 +169,33 @@ jobs:
163169
164170 - name : copy whl and source distribution
165171 run : |
166- assets_base="gs://nm-vllm-certs/${{inputs.package_name}}/assets/${RUN_ID}"
167- gcloud storage cp "${DIST_PATH}/${whl}" "${assets_base}/${whl}"
168- gcloud storage cp "${DIST_PATH}/${tarfile}" "${assets_base}/${tarfile}"
169- env :
170- RUN_ID : ${{github.run_id}}
172+ if [[ -z "${WHL_FILE}" || -z "${SDIST_FILE}" ]]; then
173+ echo "::error::WHL_FILE or SDIST_FILE are not set"
174+ exit 1
175+ fi
176+
177+ assets_base="gs://nm-vllm-certs/${{inputs.repo}}/assets/${GITHUB_RUN_ID}"
178+ echo "Copying sdist and whl to ${assets_base}"
179+ echo "sdist=${DIST_PATH}/${SDIST_FILE}"
180+ echo "whl=${DIST_PATH}/${WHL_FILE}"
181+
182+ gcloud storage cp "${DIST_PATH}/${WHL_FILE}" "${assets_base}/${whl}"
183+ gcloud storage cp "${DIST_PATH}/${SDIST_FILE}" "${assets_base}/${tarfile}"
171184
172185 - name : upload whl
173186 uses : actions/upload-artifact@v4
174187 if : success() || failure()
175188 with :
176- name : ${{ env.whl }}
177- path : ${{ env.DIST_PATH }}/${{ env.whl }}
189+ name : ${{ env.WHL_FILE }}
190+ path : ${{ env.DIST_PATH }}/${{ env.WHL_FILE }}
178191 retention-days : 5
179192
180193 - name : upload tar.gz
181194 uses : actions/upload-artifact@v4
182195 if : success() || failure()
183196 with :
184- name : ${{ inputs.python }}-${{ env.tarfile }}
185- path : ${{ env.DIST_PATH }}/${{ env.tarfile }}
197+ name : ${{ inputs.python }}-${{ env.SDIST_FILE }}
198+ path : ${{ env.DIST_PATH }}/${{ env.SDIST_FILE }}
186199 retention-days : 5
187200
188201 - name : summary
@@ -195,14 +208,11 @@ jobs:
195208 repo : ${{ inputs.repo }}
196209 branch : ${{ inputs.branch }}
197210 python : ${{ inputs.python }}
198- whl_status : ${{ steps.build.outputs.whl_status }}
211+ whl_status : ${{ env.WHL_STATUS } }}
199212
200213 - name : run status
201214 id : run_status
202215 if : success() || failure()
203- env :
204- BUILD_STATUS : ${{ env.whl_status }}
205- WHL_STATUS : ${{ env.whl_status }}
206216 run : |
207217 echo "build status: ${WHL_STATUS}"
208218 if [ -z "${WHL_STATUS}" ] || [ "${WHL_STATUS}" -ne "0" ]; then exit 1; fi
0 commit comments