Skip to content

Commit 354bc83

Browse files
committed
Add variable to know if a workflow call was made, enable all package builds, change gsutil path
1 parent 8b43482 commit 354bc83

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/build_artifacts.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ on:
5151
required: true
5252
default: '${{ github.workflow }}/${{ github.run_number }}/${{ github.run_attempt }}'
5353
type: string
54+
is_workflow_call:
55+
description: "Metadata variable to know whether a workflow call was made"
56+
type: string
57+
required: true
58+
default: "1"
5459

5560
jobs:
5661
determine_matrix:
@@ -70,7 +75,8 @@ jobs:
7075
- id: set-matrix
7176
run: |
7277
artifacts=()
73-
if [[ ${{ github.event_name }} == "pull_request" ]]; then
78+
# Build every package if not a workflow call
79+
if [[ ${${{ inputs.is_workflow_call }}:-0} == "0" ]]; then
7480
artifacts=("'jax'" ", 'jaxlib'" ", 'jax-cuda-pjrt'" ", 'jax-cuda-plugin'")
7581
else
7682
if [[ ${${{ inputs.build_jax }}:-0} == "1" ]]; then
@@ -102,7 +108,7 @@ jobs:
102108
matrix:
103109
runner: ["windows-x86-n2-64", "linux-x86-n2-16", "linux-arm64-t2a-16"]
104110
artifact: ${{ fromJSON(needs.determine_matrix.outputs.artifact_matrix) }}
105-
python: ["3.10"] #, "3.11", "3.12"]
111+
python: ["3.10", "3.11", "3.12"]
106112
# jax-cuda-pjrt and jax are pure Python packages so they do not need to be built for each
107113
# Python version.
108114
exclude:
@@ -151,5 +157,5 @@ jobs:
151157
- name: Upload artifacts to GCS bucket
152158
# Upload if requested and one of the artifacts was built
153159
if: inputs.upload_artifacts
154-
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
160+
run: gsutil -m cp -r $(pwd)/dist gs://general-ml-ci-transient/jax-github-actions/"${{ inputs.upload_destination }}"/$PLATFORM
155161

.github/workflows/pytest_cpu_reuse.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- name: Download the artifacts built in the "build_artifacts" job
6161
run: >-
6262
mkdir -p $(pwd)/dist &&
63-
~/usr/local/bin/google-cloud-sdk/bin/gsutil -m cp -r gs://general-ml-ci-transient/jax-github-actions/"${{ github.workflow }}"/${{ github.run_number }}/${{ github.run_attempt }}/$PLATFORM $(pwd)/dist
63+
gsutil -m cp -r gs://general-ml-ci-transient/jax-github-actions/"${{ github.workflow }}"/${{ github.run_number }}/${{ github.run_attempt }}/$PLATFORM $(pwd)/dist
6464
- name: Install pytest
6565
env:
6666
JAXCI_PYTHON: python${{ matrix.python }}

0 commit comments

Comments
 (0)