-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (51 loc) · 2.06 KB
/
llvm-ci.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
56
57
58
59
60
61
62
63
64
65
66
67
name: CI
on:
schedule:
- cron: "0 */4 * * *"
workflow_dispatch:
jobs:
build:
concurrency:
group: ${{ matrix.variant }}
cancel-in-progress: false
strategy:
matrix:
variant: [ rv64gc-O3-thinlto, rv64gc-Os-thinlto, rv64gczxx-O3-thinlto, rv32gc-O3-thinlto ]
runs-on: ${{ matrix.variant }}
permissions:
issues: write
steps:
- uses: dtcxzyw/checkout@main
- name: Create work space
run: ./setup-work-space.sh ${{ vars.BASE_DIR }}/${{ matrix.variant }}
- name: Update LLVM
run: ${{ github.workspace }}/update-llvm.sh
working-directory: ${{ vars.BASE_DIR }}/${{ matrix.variant }}
- name: Check force-rebuild flag
if: github.event_name != 'schedule'
run: echo "FORCE_REBUILD=1" >> $GITHUB_ENV
- name: Update llvm-test-suite
run: ${{ github.workspace }}/update-llvm-test-suite.sh
working-directory: ${{ vars.BASE_DIR }}/${{ matrix.variant }}
- name: Update llvm-lnt
run: ${{ github.workspace }}/update-llvm-lnt.sh
working-directory: ${{ vars.BASE_DIR }}/${{ matrix.variant }}
- name: Build LLVM
run: ${{ github.workspace }}/build-llvm.sh ${{ github.workspace }}
working-directory: ${{ vars.BASE_DIR }}/${{ matrix.variant }}
- name: Build LLVM Test Suite
id: test
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: ${{ vars.BASE_DIR }}/${{ matrix.variant }}
- name: Report
uses: JasonEtco/create-an-issue@v2
if: steps.test.outputs.SHOULD_OPEN_ISSUE == '1'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filename: issue.md
- name: Archive artifacts
uses: dtcxzyw/upload-artifact@main
with:
name: artifacts-${{ matrix.variant }}
path: ${{ vars.BASE_DIR }}/${{ matrix.variant }}/artifacts