2929 type : string
3030 required : true
3131 default : " 0"
32- install-jax-current-commit :
33- description : " Should the 'jax' package be installed from the current commit?"
34- type : string
35- required : true
36- default : " 1"
3732 gcs_download_uri :
3833 description : " GCS location prefix from where the artifacts should be downloaded"
3934 required : true
6257 JAXCI_HERMETIC_PYTHON_VERSION : " ${{ inputs.python }}"
6358 JAXCI_PYTHON : " python${{ inputs.python }}"
6459 JAXCI_ENABLE_X64 : " ${{ inputs.enable-x64 }}"
65- JAXCI_INSTALL_JAX_CURRENT_COMMIT : " ${{ inputs.install-jax-current-commit }}"
6660
6761 steps :
6862 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -88,22 +82,18 @@ jobs:
8882 # `*-cp<py_version>-cp<py_version>-*`, while free-threaded wheels use
8983 # `*-cp<py_version>-cp<py_version>t-*`.
9084 echo "PYTHON_MAJOR_MINOR=cp${python_major_minor%t}-cp${python_major_minor}-" >> $GITHUB_ENV
91- - name : Download jaxlib wheel from GCS (non-Windows runs)
85+ - name : Download wheels from GCS (non-Windows runs)
9286 id : download-wheel-artifacts-nw
9387 # Set continue-on-error to true to prevent actions from failing the workflow if this step
9488 # fails. Instead, we verify the outcome in the step below so that we can print a more
9589 # informative error message.
9690 continue-on-error : true
9791 if : ${{ !contains(inputs.runner, 'windows-x86') }}
9892 run : |
99- mkdir -p $(pwd)/dist &&
93+ mkdir -p $(pwd)/dist
94+ gsutil -m cp -r "${{ inputs.gcs_download_uri }}"/jax*py3*none*any.whl $(pwd)/dist/
10095 gsutil -m cp -r "${{ inputs.gcs_download_uri }}/jaxlib*${PYTHON_MAJOR_MINOR}*${OS}*${ARCH}*.whl" $(pwd)/dist/
101-
102- # Download the "jax" wheel from GCS if inputs.install-jax-current-commit is not set to 1
103- if [[ "${{ inputs.install-jax-current-commit }}" != 1 ]]; then
104- gsutil -m cp -r "${{ inputs.gcs_download_uri }}"/jax*py3*none*any.whl $(pwd)/dist/
105- fi
106- - name : Download jaxlib wheel from GCS (Windows runs)
96+ - name : Download wheels from GCS (Windows runs)
10797 id : download-wheel-artifacts-w
10898 # Set continue-on-error to true to prevent actions from failing the workflow if this step
10999 # fails. Instead, we verify the outcome in step below so that we can print a more
@@ -115,12 +105,8 @@ jobs:
115105 mkdir dist
116106 @REM Use `call` so that we can run sequential gsutil commands on Windows
117107 @REM See https://github.com/GoogleCloudPlatform/gsutil/issues/233#issuecomment-196150652
108+ call gsutil -m cp -r "${{ inputs.gcs_download_uri }}"/jax*py3*none*any.whl dist/
118109 call gsutil -m cp -r "${{ inputs.gcs_download_uri }}/jaxlib*%PYTHON_MAJOR_MINOR%*%OS%*%ARCH%*.whl" dist/
119-
120- @REM Download the "jax" wheel from GCS if inputs.install-jax-current-commit is not set to 1
121- if not "${{ inputs.install-jax-current-commit }}"=="1" (
122- call gsutil -m cp -r "${{ inputs.gcs_download_uri }}"/jax*py3*none*any.whl dist/
123- )
124110 - name : Skip the test run if the wheel artifacts were not downloaded successfully
125111 if : steps.download-wheel-artifacts-nw.outcome == 'failure' || steps.download-wheel-artifacts-w.outcome == 'failure'
126112 run : |
0 commit comments