-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't build llvm when building docs (#580)
* Don't build llvm when building docs * Delete utils/github-build-llvm.sh
- Loading branch information
Showing
2 changed files
with
33 additions
and
66 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,38 +41,41 @@ jobs: | |
|
||
- name: Get Submodule Hash | ||
id: get-submodule-hash | ||
run: echo "::set-output name=hash::$(md5sum $(echo utils/clone-llvm.sh))" | ||
run: echo "::set-output name=hash::$(md5sum $(echo utils/clone-mlir-aie.sh))" | ||
shell: bash | ||
|
||
- name: Ccache for C++ compilation | ||
uses: hendrikmuhs/ccache-action@4687d037e4d7cf725512d9b819137a3af34d39b3 | ||
with: | ||
key: ${{ runner.os }}-clangreleaseasserts-${{ steps.get-submodule-hash.outputs.hash }} | ||
key: ${{ runner.os }}-generatedocs-${{ steps.get-submodule-hash.outputs.hash }} | ||
max-size: 1G | ||
|
||
- name: Get cmakeModules | ||
id: clone-cmakeModules | ||
run: git clone --depth 1 https://github.com/Xilinx/cmakeModules.git | ||
shell: bash | ||
|
||
- name: Get LLVM | ||
id: clone-llvm | ||
run: utils/clone-llvm.sh | ||
shell: bash | ||
|
||
- name: Rebuild and Install LLVM | ||
run: utils/github-build-llvm.sh | ||
- name: Build and Install libxaie | ||
run: utils/github-clone-build-libxaie.sh | ||
|
||
- name: Get mlir-aie | ||
id: clone-mlir-aie | ||
run: utils/clone-mlir-aie.sh | ||
shell: bash | ||
|
||
- name: Rebuild and Install libxaie | ||
run: utils/github-clone-build-libxaie.sh | ||
- name: Build and install mlir-aie | ||
id: build-aie | ||
run: | | ||
pushd mlir-aie | ||
pip install -r python/requirements.txt | ||
LLVM_VERSION=$(utils/clone-llvm.sh --get-wheel-version) | ||
echo "LLVM_PROJECT_VERSION=${LLVM_VERSION}" | tee -a $GITHUB_OUTPUT | ||
pip -q download mlir==$LLVM_VERSION \ | ||
-f https://github.com/Xilinx/mlir-aie/releases/expanded_assets/mlir-distro | ||
unzip -q mlir-*.whl | ||
find mlir -exec touch -a -m -t 201108231405.14 {} \; | ||
MLIR_AIE_VERSION=`git rev-parse HEAD` | ||
echo "MLIR_AIE_COMMIT=${MLIR_AIE_VERSION}" | tee -a $GITHUB_OUTPUT | ||
popd | ||
- name: Rebuild and Install mlir-aie | ||
run: utils/github-build-mlir-aie.sh | ||
utils/github-build-mlir-aie.sh | ||
# Build the repo test target in release mode to build and test. | ||
- name: Build Docs | ||
|
@@ -82,9 +85,9 @@ jobs: | |
cmake .. \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DLLVM_ENABLE_ASSERTIONS=OFF \ | ||
-DCMAKE_MODULE_PATH=`pwd`/../cmakeModules \ | ||
-DMLIR_DIR=../llvm/install/lib/cmake/mlir/ \ | ||
-DLLVM_DIR=../llvm/install/lib/cmake/llvm/ \ | ||
-DCMAKE_MODULE_PATH=`pwd`/../mlir-aie/cmake/modulesXilinx \ | ||
-DMLIR_DIR=`pwd`/../mlir-aie/mlir/lib/cmake/mlir/ \ | ||
-DLLVM_DIR=`pwd`/../mlir-aie/mlir/lib/cmake/llvm/ \ | ||
-DAIE_DIR=`pwd`/../mlir-aie/install/lib/cmake/aie/ \ | ||
-DCMAKE_LINKER=lld \ | ||
-DLLVM_EXTERNAL_LIT=`pwd`/../llvm/build/bin/llvm-lit \ | ||
|
@@ -101,10 +104,13 @@ jobs: | |
- name: Save LLVM Version | ||
run: | | ||
cd llvm; set VER=`git rev-parse HEAD` | ||
echo "{" > ../build_release/docs/build_info.json | ||
echo "llvm-version: \"$(VER)\"," >> ../build_release/docs/build_info.json | ||
echo "}" > ../build_release/docs/build_info.json | ||
LLVM_VER="${{ steps.build-aie.outputs.LLVM_PROJECT_VERSION }}" | ||
AIE_VER="${{ steps.build-aie.outputs.MLIR_AIE_COMMIT }}" | ||
echo "{" > ./build_release/docs/build_info.json | ||
echo "llvm-version: \"${LLVM_VER}\"," >> ./build_release/docs/build_info.json | ||
echo "mlir-aie-version: \"${AIE_VER}\"," >> ./build_release/docs/build_info.json | ||
echo "}" > ./build_release/docs/build_info.json | ||
- name: Publish to github-pages | ||
uses: peaceiris/[email protected] | ||
|
This file was deleted.
Oops, something went wrong.