-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (33 loc) · 960 Bytes
/
dag-grep.yml
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
name: DAG grep
on:
issues:
types: labeled
jobs:
build:
if: github.event.label.name == 'grep'
runs-on: [self-hosted, grep]
permissions:
issues: write
contents: write
steps:
- uses: actions/checkout@v4
with:
submodules: false
fetch-depth: 0
ref: main
- name: Set up Git
run: ${{ github.workspace }}/scripts/setup_git.sh
- name: Get Pattern IR
run: |
echo "${TEXT}" | sed -n '/^```/,/^```/ p' | sed '/^```/ d' > ${{ github.workspace }}/test.ll
cat ${{ github.workspace }}/test.ll
env:
TEXT: ${{ github.event.issue.body }}
- name: Run LLVM DAG Grep
run: |
${{ github.workspace }}/scripts/run_dag_grep.sh
cat ${{ github.workspace }}/scripts/grep.md
- name: Report
uses: thollander/actions-comment-pull-request@v2
with:
filePath: scripts/grep.md