mirror of
https://github.com/heiher/natmap.git
synced 2026-05-06 21:51:26 +08:00
CI: Add llvm checker.
This commit is contained in:
18
.github/workflows/build.yaml
vendored
18
.github/workflows/build.yaml
vendored
@@ -150,3 +150,21 @@ jobs:
|
||||
- name: Build
|
||||
run: |
|
||||
./android-ndk-r27b/ndk-build
|
||||
llvm:
|
||||
name: LLVM
|
||||
runs-on: ubuntu-22.04
|
||||
if: github.event_name != 'release'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
submodules: true
|
||||
- name: Prepare
|
||||
run: |
|
||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||
sudo add-apt-repository -y 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main'
|
||||
sudo apt install -y clang
|
||||
- name: Build
|
||||
run: |
|
||||
make CC=clang ENABLE_STATIC=1 -j`nproc`
|
||||
|
||||
Reference in New Issue
Block a user