Skip to content

DRAFT initial circle-mlir project #5

DRAFT initial circle-mlir project

DRAFT initial circle-mlir project #5

name: Run Circle-MLIR Ubuntu Build
on:
pull_request:
branches:
- master
- release/*
paths:
- '.github/workflows/run-circle-mlir-build.yml'
- 'circle-mlir/**'
defaults:
run:
shell: bash
# Cancel previous running jobs when pull request is updated
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
circle-mlir-test:
if: github.repository_owner == 'Samsung'
strategy:
matrix:
type: [ debug, release ]
ubuntu_code: [ jammy ]
include:
- ubuntu_code: jammy
ubuntu_vstr: 2204
ubuntu_ver: 22.04
runs-on: ubuntu-${{ matrix.ubuntu_ver }}
container:
image: seanshpark/circle-mlir-build-${{ matrix.ubuntu_vstr }}:latest
options: --user root
name: onecc ubuntu ${{ matrix.ubuntu_ver }} ${{ matrix.type }} test
steps:
- name: Checkout
uses: actions/checkout@v4
# TODO download circle-interpreter
# NOTE Docker image has pre-installed submodules in /workdir
# NOTE Docker image has pre-installed python packages
- name: Configure
run: |
Python3_ROOT_DIR=/usr/bin cmake -B build/${{ matrix.type }} -S ./circle-mlir \
-DCMAKE_INSTALL_PREFIX=build/${{ matrix.type }}.install \
-DCMAKE_BUILD_TYPE=${{ matrix.type }} \
-DCIRCLE_MLIR_WORKDIR=/workdir
- name: Build, test & install
run: |
cmake --build build/${{ matrix.type }} -j4
CTEST_OUTPUT_ON_FAILURE=1 cmake --build build/${{ matrix.type }} --verbose -- test
cmake --build build/${{ matrix.type }} -j4 -- install