Skip to content

Add GitHub Action for XLA CPU CI tests to test new self-hosted runners #2

Add GitHub Action for XLA CPU CI tests to test new self-hosted runners

Add GitHub Action for XLA CPU CI tests to test new self-hosted runners #2

Workflow file for this run

# Copyright 2025 The OpenXLA Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ============================================================================
name: CI
permissions:
contents: read
on:
pull_request:
push:
branches:
- main
jobs:
Tests:
strategy:
matrix:
job_info: [
{
pool: "linux-x86-n2-16",
container: "us-central1-docker.pkg.dev/tensorflow-sigs/tensorflow/ml-build:latest",
kokoro_job_name: "xla-linux-x86-cpu",
pretty_name: "XLA Linux x86 CPU",
}
]
name: ${{ matrix.job_info.pretty_name }}
runs-on: ${{ matrix.job_info.pool }}
container: ${{ matrix.job_info.container }}
defaults:
run:
shell: bash
timeout-minutes: 30
steps:
- name: "Checking out repository"
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: "Run build.py"
env:
# TODO(ddunleavy): refactor build.py to not depend on this env var
KOKORO_JOB_NAME: ${{ matrix.job_info.kokoro_job_name }}
run: build_tools/ci/build.py