Skip to content

Add GitHub Actions CI on Ubuntu 22.04 and LLVM 16 #2

Add GitHub Actions CI on Ubuntu 22.04 and LLVM 16

Add GitHub Actions CI on Ubuntu 22.04 and LLVM 16 #2

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies on Ubuntu 22.04
run: |
sudo apt update
sudo apt install build-essential cmake curl ninja-build
curl -s https://apt.llvm.org/llvm.sh | sudo bash -s 16
- name: Build
run: |
cmake -B build -S . -G Ninja -D CMAKE_BUILD_TYPE=Release -D LLVM_DIR=/usr/lib/llvm-16/lib/cmake/llvm -D Clang_DIR=/usr/lib/llvm-16/lib/cmake/clang
ninja -C build --verbose