-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (42 loc) · 1.63 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Pre-Commit CI
on:
pull_request:
types: [opened, reopened]
#issue_comment:
# types: [opened]
env:
BASE_DIR: /home/dtcxzyw/llvm-ci/
jobs:
build:
concurrency:
group: ${{ matrix.variant }}
cancel-in-progress: false
strategy:
matrix:
variant: [ rv64gc-O3-thinlto, rv64gc-Os-thinlto, rv64gczxx-O3-thinlto ]
runs-on: ${{ matrix.variant }}
permissions:
issues: write
pull-requests: write
steps:
- uses: dtcxzyw/checkout@main
- name: Create work space
run: ${{ github.workspace }}/setup-work-space.sh ${{ env.BASE_DIR }}/${{ matrix.variant }}
- name: Setup patch
run: ${{ github.workspace }}/apply-pre-commit-patch.sh ${{ github.workspace }}
working-directory: ${{ env.BASE_DIR }}/${{ matrix.variant }}
- name: Build LLVM
run: ${{ github.workspace }}/build-llvm.sh ${{ github.workspace }}
working-directory: ${{ env.BASE_DIR }}/${{ matrix.variant }}
- name: Build LLVM Test Suite
run: ${{ github.workspace }}/build-llvm-test-suite.sh ${{ github.workspace }} ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} ${{ github.run_id }} ${{ matrix.variant }}
working-directory: ${{ env.BASE_DIR }}/${{ matrix.variant }}
- name: Report
uses: thollander/actions-comment-pull-request@v2
with:
filePath: pr-comment.md
- name: Archive artifacts
uses: dtcxzyw/upload-artifact@main
with:
name: artifacts-${{ matrix.variant }}
path: ${{ env.BASE_DIR }}/${{ matrix.variant }}/artifacts