-
Notifications
You must be signed in to change notification settings - Fork 31
35 lines (28 loc) · 919 Bytes
/
basic.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Basic TPP-MLIR Builder
# For now, we do it manually, but this will need to be on commit
on:
workflow_dispatch:
#on:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
jobs:
build_tpp_mlir:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: LLVM commit
run: |
echo "LLVM_DIR=${{ vars.LLVM_ROOT }}/$(cat build_tools/llvm_version.txt)" >> $GITHUB_ENV
- name: CMake
run: |
mkdir -p ${{ vars.BUILD_DIR }}
cmake -G Ninja -B${{ vars.BUILD_DIR }} . \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DMLIR_DIR=${{ env.LLVM_DIR }}/lib/cmake/mlir \
-DLLVM_EXTERNAL_LIT=${{ env.LLVM_DIR }}/bin/llvm-lit
- name: Build
run: ninja -C ${{ env.BLD_DIR }} all
- name: Test
run: ninja -C ${{ env.BLD_DIR }} check-all