Skip to content

Commit efeb1ce

Browse files
committed
Add GitHub action for running lldb tests
1 parent d2071b8 commit efeb1ce

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/lldb-tests.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: lldb Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- 'release/**'
7+
paths:
8+
- 'clang/**'
9+
- 'llvm/**'
10+
- 'lldb/**'
11+
- '.github/workflows/lldb-tests.yml'
12+
pull_request:
13+
paths:
14+
- 'clang/**'
15+
- 'llvm/**'
16+
- 'lldb/**'
17+
- '.github/workflows/lldb-tests.yml'
18+
19+
jobs:
20+
build_lldb:
21+
name: lldb build
22+
runs-on: ${{ matrix.os }}
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
os:
27+
- ubuntu-latest
28+
- windows-latest
29+
- macOS-latest
30+
steps:
31+
- name: Setup Windows
32+
if: startsWith(matrix.os, 'windows')
33+
uses: llvm/actions/setup-windows@master
34+
with:
35+
arch: amd64
36+
- name: Install Ninja
37+
uses: llvm/actions/install-ninja@master
38+
- uses: actions/checkout@v1
39+
with:
40+
fetch-depth: 1
41+
- name: Build lldb
42+
uses: llvm/actions/build-test-llvm-project@master
43+
with:
44+
# Mac OS requries that libcxx is enabled for lldb tests, so we need to disable them.
45+
cmake_args: -G Ninja -DLLVM_ENABLE_PROJECTS="clang;lldb" -DCMAKE_BUILD_TYPE=Release -DLLDB_INCLUDE_TESTS=OFF
46+
# check-lldb is not consistent, so we only build lldb.
47+
build_target: ""

0 commit comments

Comments
 (0)