Skip to content

Commit

Permalink
Fix the nighly build command
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewuathe committed Oct 21, 2023
1 parent 4dd537f commit 8e00723
Showing 1 changed file with 31 additions and 10 deletions.
41 changes: 31 additions & 10 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,37 @@ jobs:
run: |
sudo apt update
sudo apt install -y uuid-dev
- name: Clear LLVM
run: |
rm -rf ./thirdparty/llvm-project
- name: Cache LLVM artifact
id: cache-llvm
uses: actions/cache@v2
- name: Checkout the latest LLVM
uses: actions/checkout@v2
with:
path: |
./thirdparty/llvm-project
key: ${{ runner.os }}-norm-${{ hashFiles('thirdparty/llvm-project/llvm/CMakeLists.txt') }}
repository: llvm/llvm-project
ref: main
path: ./thirdparty/llvm-project

- name: Build LLVM and MLIR
run:
pushd ./thirdparty/llvm-project/build
cmake -G Ninja ../llvm \
-DLLVM_ENABLE_PROJECTS=mlir \
-DLLVM_BUILD_EXAMPLES=ON \
-DLLVM_TARGETS_TO_BUILD="host" \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_ASSERTIONS=ON -Wno-dev
cmake --build . --target check-mlir
popd

- name: Build this project
run:
mkdir -p ./build
pushd ./build
cmake -G Ninja .. \
-DLLVM_DIR=$PWD/../thirdparty/llvm-project/build/lib/cmake/llvm \
-DMLIR_DIR=$PWD/../thirdparty/llvm-project/build/lib/cmake/mlir \
-Wno-dev
cmake --build . --target check-hello

- name: Build with the latest LLVM
if: steps.cache-llvm.outputs.cache-hit != 'true'
run: |
./update-llvm.sh

0 comments on commit 8e00723

Please sign in to comment.