Skip to content

Update llvm to c49770c60f26e449379447109f7d915bd8de0384 #140

Update llvm to c49770c60f26e449379447109f7d915bd8de0384

Update llvm to c49770c60f26e449379447109f7d915bd8de0384 #140

# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# Also available under a BSD-style license. See LICENSE.
name: Bazel Build and Test (torch-mlir)
# Only run when torch-mlir hash changes (deps.bzl)
on:
pull_request:
branches:
- main
paths:
- 'deps.bzl'
- '.github/workflows/bazelBuildAndTestTorchmlir.yml'
# TODO: Use self-hosted runners as we hit disk space issues with GitHub hosted runners
# push:
# branches:
# - main
# paths:
# - 'deps.bzl'
# - '.github/workflows/bazelBuildAndTestTorchmlir.yml'
workflow_dispatch:
# Ensure that only a single job or workflow using the same
# concurrency group will run at a time. This would cancel
# any in-progress jobs in the same github workflow and github
# ref (e.g. refs/heads/main or refs/pull/<pr_number>/merge).
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ubuntu-build:
name: ubuntu-x86_64 / torch-mlir
runs-on: ubuntu-latest
steps:
- name: Checkout mlir-tcp
uses: actions/checkout@v4
- name: Setup workspace
uses: ./.github/actions/setup-build
with:
cache-prefix: 'torch-mlir'
- name: Build docker image
run: |
docker build -f docker/Dockerfile \
-t mlir-tcp:ci \
--build-arg GROUP=$(id -gn) \
--build-arg GID=$(id -g) \
--build-arg USER=$(id -un) \
--build-arg UID=$(id -u) \
.
- name: Bazel build and test torch-mlir
run: |
docker run --rm \
-v "$(pwd)":"/opt/src/mlir-tcp" \
-v "${HOME}/.cache/bazel":"${HOME}/.cache/bazel" \
mlir-tcp:ci \
bazel test --test_output=errors @torch-mlir//...