Skip to content

external lit, build is no secret #16

external lit, build is no secret

external lit, build is no secret #16

Workflow file for this run

name: Basic TPP-MLIR Builder
# For now, we do it manually, but this will need to be on commit
on:
workflow_dispatch:
push:
branches: [ "ghactions" ]
pull_request:
branches: [ "ghactions" ]
jobs:
build_tpp_mlir:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: LLVM commit
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 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_LIT }}
- name: Build
run: ninja -C build all
- name: Test
run: ninja -C build check-all