Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,14 @@ jobs:
with:
dev-image: us-central1-docker.pkg.dev/tpu-pytorch-releases/docker/development:3.12_tpuvm
timeout-minutes: 45 # Takes ~20m as of 2025/5/30.
has_code_changes: ${{ needs.check_code_changes.outputs.has_code_changes }}
# We should build PyTorch and PyTorch/XLA if:
# 1. There are code changes.
# 2. This is a `push` event to `master` or release branches.
#
# The reason for (2) is that `push-docs` job below is run precisely on (2) condition.
# In order for it (the `push-docs` job) to be successful, it needs to install the PyTorch
# and PyTorch/XLA wheels. Therefore, we need to build their wheels by running this job.
has_code_changes: ${{ (needs.check_code_changes.outputs.has_code_changes == 'true' || github.event_name == 'push') && 'true' || 'false' }}
runner: linux.24xlarge
secrets:
gcloud-service-key: ${{ secrets.GCLOUD_SERVICE_KEY }}
Expand Down