-
Notifications
You must be signed in to change notification settings - Fork 31
58 lines (49 loc) · 1.47 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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" ]
env:
# clang, gcc
CC: clang
CXX: clang++
# ld, gold, lld
LD: lld
# Release, Debug, RelWithDebInfo
BUILD: RelWithDebInfo
# "Address;Memory;Leak;Undefined"
SAN: ""
# ON, OFF
OPENMP: OFF
ONEDNN: OFF
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=$HOME/.local/bin/lit" >> $GITHUB_ENV
- name: CMake
run: |
mkdir -p build
cmake -G Ninja -B build . \
-DCMAKE_C_COMPILER=${CC} -DCMAKE_CXX_COMPILER=${CXX} \
-DCMAKE_BUILD_TYPE=${BUILD} \
-DMLIR_DIR=${{ env.LLVM_DIR }}/lib/cmake/mlir \
-DLLVM_EXTERNAL_LIT=${{ env.LLVM_LIT }} \
-DLLVM_USE_LINKER=${LD} \
-DUSE_SANITIZER=${SAN} \
-DUSE_OpenMP=${OPENMP} \
-DUSE_OneDNN=${ONEDNN}
- name: Build
run: ninja -C build all
- name: Test
run: ninja -C build check-all