diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml index dd43012cb..4f06e4292 100644 --- a/.github/workflows/basic.yml +++ b/.github/workflows/basic.yml @@ -19,16 +19,21 @@ jobs: run: | echo "LLVM_DIR=${{ secrets.LLVM_ROOT }}/$(cat build_tools/llvm_version.txt)" >> $GITHUB_ENV + - name: Install Python Requirements + run: | + pip install --upgrade --user lit + echo "LLVM_LIT=~/.local/bin/lit" >> $GITHUB_ENV + - name: CMake run: | - mkdir -p ${{ secrets.BUILD_DIR }} + mkdir -p build cmake -G Ninja -B${{ secrets.BUILD_DIR }} . \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DMLIR_DIR=${{ env.LLVM_DIR }}/lib/cmake/mlir \ - -DLLVM_EXTERNAL_LIT=${{ env.LLVM_DIR }}/bin/llvm-lit + -DLLVM_EXTERNAL_LIT=${{ env.LLVM_LIT }} - name: Build - run: ninja -C ${{ secrets.BUILD_DIR }} all + run: ninja -C build all - name: Test - run: ninja -C ${{ secrets.BUILD_DIR }} check-all + run: ninja -C build check-all