Add perf counter #38
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
# --------------------------------------------------------- | |
# Copyright 2023 KULeuven | |
# Author: Xiaoling Yi <[email protected]> | |
# --------------------------------------------------------- | |
name: Unit Test | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
jobs: | |
run: | |
name: Build and Test | |
strategy: | |
matrix: | |
java-version: [17] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout current branch (full) | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: ${{ matrix.java-version }} | |
cache: sbt | |
- name: Setup Firtool | |
run: |- | |
wget https://github.com/llvm/circt/releases/download/firtool-1.42.0/firrtl-bin-ubuntu-20.04.tar.gz | |
tar -xvzf firrtl-bin-ubuntu-20.04.tar.gz | |
echo "$PWD/firtool-1.42.0/bin" >> $GITHUB_PATH | |
- name: Run the unit tests | |
run: sbt test |