Skip to content

[gccjit][ci] enable code formatting checks in CI #223

[gccjit][ci] enable code formatting checks in CI

[gccjit][ci] enable code formatting checks in CI #223

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
check-format:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install code formatters
run: |
sudo apt-get update
sudo apt-get install clang-format git
- name: Check code formatting
run: ./check-format.sh
build:
runs-on: ubuntu-24.04
env:
LLVM_DIR: /usr/lib/llvm-18/cmake
steps:
- uses: actions/checkout@v4
- name: Install build tools and libraries
run: |
sudo apt-get update
sudo apt-get install -y gcc-14 g++-14 cmake ninja-build llvm-18-dev llvm-18-tools \
libmlir-18-dev libgccjit-14-dev mlir-18-tools python3 python3-pip
pip install lit
- name: Build
run: |
cmake -B build -G Ninja -DCMAKE_C_COMPILER=gcc-14 -DCMAKE_CXX_COMPILER=g++-14 .
cmake --build build
cmake --build build --target gccjit-tools
- name: Run tests
run: |
cmake --build build --target check