onnx-mlir/.circleci/config.yml

35 lines
1.1 KiB
YAML
Raw Normal View History

2019-12-24 05:33:08 +08:00
version: 2
jobs:
build:
docker:
2019-12-24 06:03:22 +08:00
- image: circleci/python
2019-12-24 05:33:08 +08:00
steps:
- checkout
- run:
name: Check current directory
command: pwd
2019-12-24 06:47:37 +08:00
- run:
name: Installing GCC
2019-12-24 06:53:31 +08:00
command: 'sudo apt-get update && sudo apt-get install -y gcc g++'
2019-12-24 06:47:37 +08:00
- run:
name: Install CMAKE
2019-12-24 06:58:55 +08:00
command: 'sudo apt-get update && sudo apt-get install -y cmake ninja-build'
2019-12-24 06:47:37 +08:00
- run:
name: Check gcc version
2019-12-24 06:47:37 +08:00
command: gcc --version
2019-12-24 05:33:08 +08:00
- run:
name: Install MLIR
2019-12-24 05:53:08 +08:00
command: |
git clone https://github.com/llvm/llvm-project.git
git clone https://github.com/tensorflow/mlir llvm-project/llvm/projects/mlir
mkdir llvm-project/build
cd llvm-project/build
cmake -G Ninja ../llvm -DLLVM_ENABLE_RTTI=ON -DLLVM_BUILD_EXAMPLES=OFF -DLLVM_TARGETS_TO_BUILD="host"
2019-12-24 11:43:43 +08:00
CMAKE_EXE_LINKER_FLAGS="-Wl,--reduce-memory-overheads -Wl,--hash-size=1021" cmake --build . --target check-mlir -- -j 4
2019-12-24 05:33:08 +08:00
- run:
name: Print the Current Time
command: date