Skip to content

Commit 59fe111

Browse files
dpiparoRoot Persona
authored andcommitted
Add Cling GH CI workflow
1 parent b6bee9e commit 59fe111

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/cling.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Cling Build and Test
2+
3+
on:
4+
push:
5+
paths:
6+
- '**'
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, macos-latest]
15+
steps:
16+
- name: Checkout LLVM
17+
uses: actions/checkout@v4
18+
with:
19+
repository: root-project/llvm-project
20+
path: llvm
21+
ref: cling-latest
22+
fetch-depth: 1
23+
24+
- name: Checkout Cling
25+
uses: actions/checkout@v4
26+
with:
27+
repository: root-project/cling
28+
path: cling
29+
fetch-depth: 1
30+
31+
- name: Prepare build directory
32+
run: |
33+
mkdir build
34+
35+
- name: Configure
36+
working-directory: build
37+
run: cmake -DLLVM_EXTERNAL_PROJECTS=cling -DLLVM_EXTERNAL_CLING_SOURCE_DIR=../cling/ -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_TARGETS_TO_BUILD="host;NVPTX" -DCMAKE_BUILD_TYPE=Release ../llvm/llvm/
38+
39+
- name: Build
40+
working-directory: build
41+
run: cmake --build . --parallel 4 --target cling
42+
43+
- name: Test
44+
working-directory: build
45+
run: cmake --build . --target check-cling

0 commit comments

Comments
 (0)