Skip to content

Merge pull request #27 from spcl/backward-conversion #260

Merge pull request #27 from spcl/backward-conversion

Merge pull request #27 from spcl/backward-conversion #260

Workflow file for this run

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