[circle-mlir] Enable gtest #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-latest | |
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 |