Skip to content

Commit 0a54f97

Browse files
committed
refine if condition
1 parent e123c8e commit 0a54f97

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/build_artifacts.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ jobs:
9797
JAXCI_HERMETIC_PYTHON_VERSION: "${{ matrix.python }}"
9898
JAXCI_CLONE_MAIN_XLA: "${{ inputs.clone_main_xla }}"
9999

100+
if: inputs.build_jax || inputs.build_jaxlib || inputs.build_jax_cuda_plugin || inputs.build_jax_cuda_pjrt
100101
steps:
101102
- uses: actions/checkout@v3
102103
# Halt for testing
@@ -105,19 +106,12 @@ jobs:
105106
with:
106107
halt-dispatch-input: ${{ inputs.halt-for-connection }}
107108
- name: Build ${{ matrix.artifact }}
108-
if: >-
109-
(inputs.build_jax && matrix.artifact == 'jax') ||
110-
(inputs.build_jaxlib && matrix.artifact == 'jaxlib') ||
111-
(inputs.build_jax_cuda_plugin && matrix.artifact == 'jax-cuda-plugin') ||
112-
(inputs.build_jax_cuda_pjrt && matrix.artifact == 'jax-cuda-pjrt')
113109
run: ./ci/build_artifacts.sh "${{ matrix.artifact }}"
114110
- name: Set Platform
115111
run: |
116112
echo "PLATFORM=$(uname)_$(uname -m)" >> $GITHUB_ENV
117113
- name: Upload artifacts to GCS bucket
118114
# Upload if requested and one of the artifacts was built
119-
if: >-
120-
inputs.upload_artifacts &&
121-
(inputs.build_jax || inputs.build_jaxlib || inputs.build_jax_cuda_plugin || inputs.build_jax_cuda_pjrt)
115+
if: inputs.upload_artifacts
122116
run: ~/usr/local/bin/google-cloud-sdk/bin/gsutil -m cp -r $(pwd)/dist gs://general-ml-ci-transient/jax-github-actions/"${{ inputs.upload_destination }}"/$PLATFORM
123117

0 commit comments

Comments
 (0)