Skip to content

Commit

Permalink
mlir: Point CI build to install directories instead of build
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianschuiki committed Nov 24, 2021
1 parent 68651cb commit 165e304
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/build-circt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ cd circt/build
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=../install \
-DMLIR_DIR=$PWD/../llvm/build/lib/cmake/mlir \
-DLLVM_DIR=$PWD/../llvm/build/lib/cmake/llvm \
-DMLIR_DIR=$PWD/../llvm/install/lib/cmake/mlir \
-DLLVM_DIR=$PWD/../llvm/install/lib/cmake/llvm \
-DLLVM_ENABLE_ASSERTIONS=ON

cmake --build . --target install -- -j$(nproc)
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
id: env
run: |
echo "CIRCT_SYS_CIRCT_DIR=$GITHUB_WORKSPACE/circt" >> $GITHUB_ENV
echo "CIRCT_SYS_CIRCT_BUILD_DIR=$GITHUB_WORKSPACE/circt/install" >> $GITHUB_ENV
echo "CIRCT_SYS_LLVM_DIR=$GITHUB_WORKSPACE/circt/llvm" >> $GITHUB_ENV
echo "CIRCT_SYS_LLVM_BUILD_DIR=$GITHUB_WORKSPACE/circt/llvm/install" >> $GITHUB_ENV
echo "::set-output name=circt-hash::$(git rev-parse @:./circt)"
echo "::set-output name=llvm-hash::$(cd circt && git rev-parse @:./llvm)"
Expand Down

0 comments on commit 165e304

Please sign in to comment.