[circle-mlir/tools-test] Enable ReshapeOp and ShapeOp (#14827) #350
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 | |
one_comp_ver: 1.29.0 | |
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: | |
# NOTE we only need small circle-interpreter Debian package, but | |
# as it's not ready yet, install whole one_compiler for now. | |
# TODO prepare circle-interpreter Debian package and install it. | |
- name: Install one-compiler | |
run: | | |
cd /var/tmp | |
ONE_COMPILER=one-compiler-${{ matrix.ubuntu_code }}_${{ matrix.one_comp_ver }}_amd64.deb | |
wget https://github.com/Samsung/ONE/releases/download/${{ matrix.one_comp_ver }}/${ONE_COMPILER} | |
ls -al . | |
dpkg -i ${ONE_COMPILER} | |
ls -al /usr/share/one/bin | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# 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, test & install | |
run: | | |
cd circle-mlir | |
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 |