Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[github] Introduce initial run-circle-mlir-build #14631

Merged
merged 2 commits into from
Feb 11, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/workflows/run-circle-mlir-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Run Circle-MLIR Ubuntu Build

on:
push:
branches:
- master
- release/*
paths:
- '.github/workflows/run-circle-mlir-build.yml'
- 'circle-mlir/**'
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: u2204

runs-on: ubuntu-24.04

container:
image: nnfw/circle-mlir-build-${{ matrix.ubuntu_vstr }}:latest
options: --user root

name: circle-mlir ${{ matrix.ubuntu_vstr }} ${{ 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: |
cd circle-mlir
Python3_ROOT_DIR=/usr/bin cmake -B build/${{ matrix.type }} -S ./ \
-DCMAKE_INSTALL_PREFIX=build/${{ matrix.type }}.install \
-DCMAKE_BUILD_TYPE=${{ matrix.type }} \
-DCIRCLE_MLIR_WORKDIR=/workdir

- name: Build
run: |
cd circle-mlir
cmake --build build/${{ matrix.type }} -j4
Loading