add tests

This commit is contained in:
Tian Jin 2019-12-24 01:42:31 -05:00
parent 43afd5236b
commit e46b010abd
1 changed files with 1 additions and 5 deletions

View File

@ -31,7 +31,6 @@ jobs:
- restore_cache: - restore_cache:
key: ONNF-MLIR-{{ arch }} key: ONNF-MLIR-{{ arch }}
- run: - run:
name: Install MLIR name: Install MLIR
command: | command: |
@ -45,19 +44,16 @@ jobs:
cmake -G Ninja ../llvm -DLLVM_ENABLE_RTTI=ON -DLLVM_BUILD_EXAMPLES=OFF -DLLVM_TARGETS_TO_BUILD="host" -DCMAKE_BUILD_TYPE=Release cmake -G Ninja ../llvm -DLLVM_ENABLE_RTTI=ON -DLLVM_BUILD_EXAMPLES=OFF -DLLVM_TARGETS_TO_BUILD="host" -DCMAKE_BUILD_TYPE=Release
CMAKE_EXE_LINKER_FLAGS="-Wl,--reduce-memory-overheads -Wl,--hash-size=512" cmake --build . --target check-mlir -- -j 4 CMAKE_EXE_LINKER_FLAGS="-Wl,--reduce-memory-overheads -Wl,--hash-size=512" cmake --build . --target check-mlir -- -j 4
fi fi
- save_cache: - save_cache:
key: ONNF-MLIR-{{ arch }} key: ONNF-MLIR-{{ arch }}
paths: paths:
- llvm-project - llvm-project
- run: - run:
name: Install ONNF name: Install ONNF
command: | command: |
mkdir build && cd build mkdir build && cd build
LLVM_SRC=$(pwd)/../llvm-project/llvm LLVM_BUILD=$(pwd)/../llvm-project/build cmake .. LLVM_SRC=$(pwd)/../llvm-project/llvm LLVM_BUILD=$(pwd)/../llvm-project/build cmake ..
make -j4 make check-mlir-lit
- run: - run:
name: Print the Current Time name: Print the Current Time
command: date command: date