Skip to content

Quoct/cloud tpu 2

Quoct/cloud tpu 2 #49

name: Build JAX Artifacts
on:
pull_request:
branches:
- main
workflow_call:
jobs:
build:
continue-on-error: true
defaults:
run:
# Explicitly set the shell to bash to override the default Windows environment, i.e, cmd.
shell: bash
strategy:
matrix:
runner: ["linux-arm64-c4a-16"]
artifact: ["jax", "jaxlib", "jax-cuda-pjrt", "jax-cuda-plugin"]
python: ["3.11"]
# jax-cuda-pjrt and jax are pure Python packages so they do not need to be built for each
# Python version.
exclude:
# Pure Python packages do not need to be built for each Python version.
- artifact: "jax-cuda-pjrt"
python: "3.10"
- artifact: "jax-cuda-pjrt"
python: "3.11"
- artifact: "jax"
python: "3.10"
- artifact: "jax"
python: "3.11"
# jax is a pure Python package so it does not need to be built on multiple platforms.
- artifact: "jax"
runner: "windows-x86-n2-64"
- artifact: "jax"
runner: "linux-arm64-t2a-48"
# jax-cuda-plugin and jax-cuda-pjrt are not supported on Windows.
- artifact: "jax-cuda-plugin"
runner: "windows-x86-n2-64"
- artifact: "jax-cuda-pjrt"
runner: "windows-x86-n2-64"
runs-on: ${{ matrix.runner }}
container: "us-central1-docker.pkg.dev/tensorflow-sigs/tensorflow/ml-build:702526224"
env:
# Do not run Docker container for Linux runners. Linux runners already run in a Docker container.
JAXCI_RUN_DOCKER_CONTAINER: 0
# Use RBE to build the artifacts where possibl (Linux x86 and Windows).
JAXCI_BUILD_ARTIFACT_WITH_RBE: 1
steps:
- uses: actions/checkout@v3
- name: Build ${{ matrix.artifact }}
env:
JAXCI_HERMETIC_PYTHON_VERSION: "${{ matrix.python }}"
run: echo "Testing quoct"
- name: Another Test
run: ls
- name: Another Test
run: sleep 500