-
Notifications
You must be signed in to change notification settings - Fork 8
51 lines (42 loc) · 1.33 KB
/
lit-test.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
name: LIT Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
check-sdfg-opt:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install dependencies
# TODO: Replace with release of DaCe
run: |
sudo apt-get update
sudo apt-get install ninja-build
pip install --upgrade pip
pip install git+https://github.com/spcl/dace.git
- name: Load MLIR cache
id: mlir-cache
uses: actions/cache@v2
with:
path: llvm-project/build
key: ${{ runner.os }}-mlir-commit-67760d7
# TODO: Prevent building in multiple workflows
- name: Build MLIR
if: steps.mlir-cache.outputs.cache-hit != 'true'
run: |
mkdir llvm-project/build
cd llvm-project/build
cmake -G Ninja ../llvm -DLLVM_ENABLE_PROJECTS=mlir -DLLVM_TARGETS_TO_BUILD="host" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON
ninja
- name: Build & Test
run: |
mkdir build
cd build
cmake -G Ninja .. -DMLIR_DIR=${{github.workspace}}/llvm-project/build/lib/cmake/mlir -DLLVM_EXTERNAL_LIT=${{github.workspace}}/llvm-project/build/bin/llvm-lit
ninja check-sdfg