Repository navigation
42 lines (41 loc) · 1.41 KB
/
Copy pathllvm-diff.yml
File metadata and controls
42 lines (41 loc) · 1.41 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
name: Diff LLVM and Clang against fork of monorepo
on:
pull_request:
paths:
- 'interpreter/llvm-project/**'
jobs:
llvm-diff:
runs-on: ubuntu-latest
steps:
- name: Check out ROOT
uses: actions/checkout@v6
with:
path: root
- name: Determine tag in fork of monorepo
id: determine-tag
run: |
tag_file=root/interpreter/llvm-project/llvm-project.tag
echo "tag=$(cat $tag_file)" >> $GITHUB_OUTPUT
rm $tag_file
- name: Check out llvm-project
uses: actions/checkout@v6
with:
repository: root-project/llvm-project
ref: ${{ steps.determine-tag.outputs.tag }}
path: llvm-project
- name: Delete directories and files in llvm-project
working-directory: llvm-project
run: |
for d in bindings benchmark benchmarks gn test tests unittest unittests; do
find . -name $d -prune -exec rm -r "{}" \;
done
rm -r llvm/utils/vscode
for f in $(ls -A); do
[ -e ../root/interpreter/llvm-project/$f ] || rm -r $f
done
# Only compare what is already there in third-party
for f in $(ls -A third-party); do
[ -e ../root/interpreter/llvm-project/third-party/$f ] || rm -r third-party/$f
done
- name: Compare
run: diff -ur llvm-project/ root/interpreter/llvm-project/