This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
Update action (#66) #169
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
# 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 | |
name: Build IREE C++ Template | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install cmake clang ninja-build | |
- name: Checkout repository | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Initialize submodules | |
run : | | |
git submodule update --init | |
cd third_party/iree | |
git submodule update --init | |
- name: Build | |
run: | | |
cd $GITHUB_WORKSPACE | |
mkdir build | |
cd build | |
cmake .. \ | |
-GNinja \ | |
-DCMAKE_C_COMPILER=clang-14 \ | |
-DCMAKE_CXX_COMPILER=clang++-14 \ | |
-DIREE_HAL_DRIVER_DEFAULTS=OFF \ | |
-DIREE_HAL_EXECUTABLE_LOADER_DEFAULTS=OFF \ | |
-DIREE_HAL_EXECUTABLE_LOADER_VMVX_MODULE=ON \ | |
-DIREE_TARGET_BACKEND_DEFAULTS=OFF \ | |
-DIREE_TARGET_BACKEND_VMVX=ON \ | |
-DIREE_INPUT_TORCH=OFF \ | |
-DIREE_INPUT_TOSA=OFF \ | |
-DIREE_OUTPUT_FORMAT_C=OFF | |
cmake --build . --target simple_embedding | |
./iree_simple_embedding/simple_embedding |