1. Remove quotes from strings in yaml file for better consistency.

2. Use MAKEFLAGS env variable to limit build parallelism so that mlir installation script remains clean.
This commit is contained in:
Tian Jin 2019-12-31 13:28:26 -05:00
parent c4b990aed8
commit 706ff24d33
2 changed files with 8 additions and 7 deletions

View File

@ -7,25 +7,26 @@ jobs:
steps: steps:
- checkout - checkout
- run: - run:
name: "Pull Submodules" name: Pull Submodules
command: | command: |
git submodule update --init --recursive git submodule update --init --recursive
- run: - run:
name: Installing GCC, CMake, Ninja, Protobuf name: Installing GCC, CMake, Ninja, Protobuf
command: 'sudo apt-get update && sudo apt-get install -y gcc g++ cmake ninja-build protobuf-compiler' command: sudo apt-get update && sudo apt-get install -y gcc g++ cmake ninja-build protobuf-compiler
# Use cached mlir installation if possible. # Use cached mlir installation if possible.
- restore_cache: - restore_cache:
key: V1-LLVM-PROJECT-{{ arch }} key: V2-LLVM-PROJECT-{{ arch }}
- run: - run:
name: Install MLIR name: Install MLIR
command: | command: |
# Check whether cache restoration succeeds by checking whether # Check whether cache restoration succeeds by checking whether
# mlir-opt executable exists. # mlir-opt executable exists.
if [ ! -f llvm-project/build/bin/mlir-opt ]; then if [ ! -f llvm-project/build/bin/mlir-opt ]; then
sh .circleci/install-mlir.sh export MAKEFLAGS=-j4
source .circleci/install-mlir.sh
fi fi
- save_cache: - save_cache:
key: V1-LLVM-PROJECT-{{ arch }} key: V2-LLVM-PROJECT-{{ arch }}
paths: paths:
- llvm-project - llvm-project
- run: - run:

View File

@ -8,5 +8,5 @@ cmake -G Ninja ../llvm \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_ASSERTIONS=ON \ -DLLVM_ENABLE_ASSERTIONS=ON \
-DLLVM_ENABLE_RTTI=ON -DLLVM_ENABLE_RTTI=ON
# TODO(tjingrant): why is RTTI necessary?
cmake --build . --target check-mlir -- -j ${PARALLEL_JOBS_LIMIT:-4} cmake --build . --target check-mlir