Skip to content

Commit

Permalink
Add GitHub Actions CI on Ubuntu 22.04 and LLVM 16
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettDong committed Feb 12, 2024
1 parent 1a86119 commit 3fe9df6
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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 --build 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

0 comments on commit 3fe9df6

Please sign in to comment.