-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Add llvm build test for GitHub action
Signed-off-by: Ammar Faizi <[email protected]>
- Loading branch information
1 parent
51e1e45
commit 49f19b5
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |