From 49f19b5ed2d6072a9cac7c2dde3eb186a166bc4f Mon Sep 17 00:00:00 2001 From: Ammar Faizi Date: Mon, 16 Oct 2023 23:08:37 +0700 Subject: [PATCH] CI: Add llvm build test for GitHub action Signed-off-by: Ammar Faizi --- .github/workflows/llvm.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/llvm.yaml diff --git a/.github/workflows/llvm.yaml b/.github/workflows/llvm.yaml new file mode 100644 index 000000000..7c601b017 --- /dev/null +++ b/.github/workflows/llvm.yaml @@ -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