Skip to content

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

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 #6

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: XLA CPU Self-hosted
permissions:
contents: read
on:
pull_request:
push:
branches:
- main
# TODO(ddunleavy): refactor build.py to not depend on this env var
env:
KOKORO_JOB_NAME: "xla-linux-x86-cpu"
jobs:
xla-cpu-tests:
runs-on: "linux-x86-n2-16"
container: "us-central1-docker.pkg.dev/tensorflow-sigs/tensorflow/ml-build:latest"
defaults:
run:
shell: bash
timeout-minutes: 30
steps:
- name: "Checking out repository"
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: "Run build.py"
run: build_tools/ci/build.py