-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (33 loc) · 1017 Bytes
/
pre-commit.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
name: Pre-Commit CI
on:
pull_request:
types: [opened, reopened]
paths:
- 'scripts/setup_pre_commit_patch.sh'
jobs:
build:
runs-on: self-hosted
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.ref}}
submodules: true
fetch-depth: 0
- name: Set up Git
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git -C llvm/llvm-project checkout .
git -C llvm/llvm-project clean -fdx
- name: Setup patch
run: ${{ github.workspace }}/scripts/setup_pre_commit_patch.sh
- name: Update ASM
id: update
run: ${{ github.workspace }}/scripts/update_optimized.sh
- name: Report
uses: thollander/actions-comment-pull-request@v2
with:
filePath: scripts/pr-comment.md