[llvm] [CI] Add checks for compiler course (PR #76827)

Arseniy Obolenskiy via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 3 07:32:23 PST 2024


https://github.com/aobolensk created https://github.com/llvm/llvm-project/pull/76827

None

>From 9e172c18e05cec3767626f92a6a0dcd51ba6a898 Mon Sep 17 00:00:00 2001
From: Arseniy Obolenskiy <gooddoog at student.su>
Date: Wed, 3 Jan 2024 23:31:00 +0800
Subject: [PATCH] [CI] Add Ubuntu build

---
 .github/workflows/nn-cmplr-build.yml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 .github/workflows/nn-cmplr-build.yml

diff --git a/.github/workflows/nn-cmplr-build.yml b/.github/workflows/nn-cmplr-build.yml
new file mode 100644
index 00000000000000..0e6e8823f76861
--- /dev/null
+++ b/.github/workflows/nn-cmplr-build.yml
@@ -0,0 +1,26 @@
+name: Build LLVM
+on: [push, pull_request]
+
+jobs:
+  ubuntu-gcc-build:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout at v3
+        with:
+          submodules: true
+      - name: Setup environment
+        run: |
+          sudo apt-get install -y \
+            build-essential \
+            ninja-build \
+      - name: Build
+        run: |
+          cmake -S llvm -B build \
+            -DCMAKE_BUILD_TYPE=Release \
+            -DLLVM_ENABLE_PROJECTS='clang;mlir' \
+            -DLLVM_ENABLE_ASSERTIONS=ON \
+            -G Ninja
+          cmake --build build
+      - name: Test
+        run: |
+          cmake --build build -t check-llvm check-clang check-mlir



More information about the llvm-commits mailing list