fix installing wheels correctly #92
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build JAX Artifacts | |
| # on: | |
| # pull_request: | |
| # branches: | |
| # - main | |
| # workflow_dispatch: | |
| jobs: | |
| build: | |
| defaults: | |
| run: | |
| # Explicitly set the shell to bash to override the default Windows environment, i.e, cmd. | |
| shell: bash | |
| strategy: | |
| matrix: | |
| runner: ["windows-x86-n2-64", "linux-x86-n2-64", "linux-arm64-t2a-48"] | |
| artifact: ["jax", "jaxlib", "jax-cuda-pjrt", "jax-cuda-plugin"] | |
| python: ["3.10", "3.11", "3.12"] | |
| # 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: ${{ (contains(matrix.runner, 'linux-x86') && 'us-central1-docker.pkg.dev/tensorflow-sigs/tensorflow/build:670606426-python3.9') || | |
| (contains(matrix.runner, 'linux-arm64') && 'us-central1-docker.pkg.dev/tensorflow-sigs/tensorflow/build-arm64:jax-') || | |
| (contains(matrix.runner, 'windows-x86') && null) }} | |
| 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 | |
| # Halt for testing | |
| - name: Wait For Connection | |
| uses: ./actions/ci_connection/ | |
| - name: Build ${{ matrix.artifact }} | |
| # Explicitly set the shell to bash to override the default Windows environment, i.e, cmd. | |
| shell: bash | |
| env: | |
| JAXCI_HERMETIC_PYTHON_VERSION: "${{ matrix.python }}" | |
| ENV_FILE: "ci/envs/build_artifacts/${{ matrix.artifact }}" | |
| run: ./ci/build_artifacts.sh |