Hls test suite #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
- uses: actions/checkout@v3 | |
- name: "Cache" | |
uses: actions/cache@v3 | |
with: | |
path: ${{ github.workspace }}/jlm/* | |
key: ${{ runner.os }}-${{ github.sha }}-jlm | |
- name: "Install LLVM, Clang, MLIR, and Ninja" | |
uses: ./.github/actions/InstallLlvmDependencies | |
- name: "Update polybench submodule" | |
run: git submodule update --init polybench/ | |
- name: "Check polybench" | |
run: make polybench-check | |
llvm-test-suite: | |
runs-on: ubuntu-22.04 | |
needs: build-jlm | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Cache" | |
uses: actions/cache@v3 | |
with: | |
path: ${{ github.workspace }}/jlm/* | |
key: ${{ runner.os }}-${{ github.sha }}-jlm | |
- name: "Install LLVM, Clang, MLIR, and Ninja" | |
uses: ./.github/actions/InstallLlvmDependencies | |
- name: "Update llvm-test-suite submodule" | |
run: git submodule update --init llvm-test-suite/llvm-test-suite.git | |
- 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: | |
- uses: actions/checkout@v3 | |
- name: "Cache" | |
uses: actions/cache@v3 | |
with: | |
path: ${{ github.workspace }}/jlm/* | |
key: ${{ runner.os }}-${{ github.sha }}-jlm | |
- name: "Build CIRCT as we need firtool" | |
uses: ./.github/actions/BuildCirct | |
- name: "Install verilator" | |
run: sudo apt-get install verilator | |
- name: "Run HLS test suite" | |
run: make CIRCT_PATH=${{ github.workspace }}/build-circt/circt hls-test-run |