-
Notifications
You must be signed in to change notification settings - Fork 22
78 lines (67 loc) · 1.81 KB
/
Copy pathLLVM-Tblgen-Build.yml
File metadata and controls
78 lines (67 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: LLVM-Tblgen-Build
on:
workflow_dispatch:
push:
paths-ignore:
- ".github/workflows/LLVM-Auto-Updater.yml"
- "CONTRIBUTING.md"
- "README.md"
- "LICENSE.TXT"
- "SECURITY.md"
branches:
- auto-sync*
pull_request:
paths-ignore:
- ".github/workflows/LLVM-Auto-Updater.yml"
- "CONTRIBUTING.md"
- "README.md"
- "LICENSE.TXT"
- "SECURITY.md"
branches:
- auto-sync*
- release/**
jobs:
build-and-test-llvm-tblgen:
runs-on: ubuntu-latest
steps:
- name: Checkout llvm-capstone (patched backends)
uses: actions/checkout@v4
with:
clean: false
- name: Set up Python
uses: actions/setup-python@v4
- name: Install dependencies
run: pip install cmake Ninja
- name: Build patched llvm-tblgen
run: |
mkdir build
cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug ../llvm
cmake --build . --target llvm-tblgen --config Debug
cd ..
- name: Generate Capstone tables
run: |
./gen_cs_tables.sh
- name: Checkout LLVM
uses: actions/checkout@v4
with:
clean: false
ref: auto-sync-18-base
- name: Build LLVM llvm-tblgen
run: |
rm -rf build
mkdir build
cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug ../llvm
cmake --build . --target llvm-tblgen --config Debug
cd ..
- name: Checkout llvm-capstone (patched backends)
uses: actions/checkout@v4
with:
clean: false
- name: Generate original LLVM tables
run: |
./gen_llvm_tables.sh
- name: Compare LLVM and Capstone tables and syntax
run: |
./compare_tblgen_output.sh