-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (66 loc) · 1.81 KB
/
tests.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
68
69
70
71
72
name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-jlm:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Cache build
id: cache-build
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/jlm/*
key: ${{ runner.os }}-${{ github.sha }}-jlm
- name: "Update jlm submodule"
run: git submodule update --init jlm/
- name: "Build CIRCT"
uses: ./.github/actions/BuildCirct
- name: "Configure jlm"
run: |
cd jlm && \
./configure.sh --enable-asserts --enable-hls ${{ github.workspace }}/build-circt/circt CXX=clang++-16
- name: "Compile jlm"
run: make jlm-build
polybench:
runs-on: ubuntu-22.04
needs: build-jlm
steps:
- name: "Cache"
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/jlm/*
key: ${{ runner.os }}-${{ github.sha }}-jlm
- name: "Checkout master of polybench"
run: cd polybench && git checkout master
- name: "Check polybench"
run: make polybench-check -j `nproc`
llvm-test-suite:
runs-on: ubuntu-22.04
needs: build-jlm
steps:
- name: "Cache"
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/jlm/*
key: ${{ runner.os }}-${{ github.sha }}-jlm
- name: "Apply patch"
run: make apply-llvm-git-patch
- name: "Run llvm-test-suite"
run: make llvm-run-opt
hls-test-suite:
runs-on: ubuntu-22.04
needs: build-jlm
steps:
- name: "Cache"
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/jlm/*
key: ${{ runner.os }}-${{ github.sha }}-jlm
- name: "Install verilator"
run: sudo apt-get install verilator
- name: "Run HLS test suite"
run: make hls-test-run