Files
concrete/.github/workflows/conformance.yml
2021-06-23 10:07:16 +02:00

29 lines
893 B
YAML

name: Conformance
on:
push:
branches: [master, test-ci]
pull_request:
types: [opened, synchronize, reopened]
jobs:
Formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Format with clang-format
run: .github/workflows/scripts/format_cpp.sh
BuildAndTest:
runs-on: ubuntu-latest
env:
LLVM_PROJECT: $GITHUB_WORKSPACE/llvm_project
steps:
- uses: actions/checkout@v2
- name: Build and test compiler
uses: addnab/docker-run-action@v3
with:
image: qbozama/mlir:b2f48cc
options: -v ${{ github.workspace }}:/workspace
run: cd /workspace/compiler && mkdir build && cmake -B build . -DLLVM_DIR=$LLVM_PROJECT/build/lib/cmake/llvm -DMLIR_DIR=$LLVM_PROJECT/build/lib/cmake/mlir && make -C build/ zamacompiler && make test