Skip to content

Commit

Permalink
CI: Add llvm build test for GitHub action
Browse files Browse the repository at this point in the history
Signed-off-by: Ammar Faizi <[email protected]>
  • Loading branch information
ammarfaizi2 authored and heiher committed Oct 17, 2023
1 parent 51e1e45 commit 49f19b5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/llvm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: LLVM Build Test

on:
# Trigger the workflow on push or pull requests.
push:
pull_request:

jobs:
build:
runs-on: ubuntu-22.04

strategy:
fail-fast: false

steps:
- name: Checkout source
uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: true
- name: Install Compilers
run: |
sudo apt-get purge -qq --auto-remove llvm python3-lldb-14 llvm-14 -y;
wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh;
sudo bash /tmp/llvm.sh 18;
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 400;
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 400;
- name: Build Linux
run: |
make CC=clang ENABLE_STATIC=1 -j

0 comments on commit 49f19b5

Please sign in to comment.