add to lint flow, and hook up bypass in core top #194
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: LETC Non-UVM Tests | |
#Thanks https://stackoverflow.com/questions/57699839/github-actions-how-to-target-all-branches-except-master | |
on: | |
push: | |
branches: [ "**", "!legacy" ] | |
pull_request: | |
branches: [ "**", "!legacy" ] | |
jobs: | |
regression: | |
strategy: | |
fail-fast: false | |
matrix: | |
#We only support Linux | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 120 | |
steps: | |
- uses: actions/checkout@v3 | |
#Too old | |
#- name: Install Verilator | |
# run: sudo apt-get install -y verilator | |
- name: Install Runtime Dependencies | |
run: sudo apt-get install ccache gtkwave | |
- name: Cache Verilator Installation | |
id: cache-verilator | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-verilator-installation | |
with: | |
path: ~/.verilator | |
key: ${{runner.os}}-build-${{env.cache-name}} | |
- if: ${{ steps.cache-verilator.outputs.cache-hit != 'true' }} | |
name: Install Verilator Compile Dependencies | |
run: sudo apt-get install git help2man perl python3 make autoconf g++ flex bison ccache libunwind-dev libgoogle-perftools-dev numactl perl-doc libfl2 libfl-dev zlib1g zlib1g-dev | |
- if: ${{ steps.cache-verilator.outputs.cache-hit != 'true' }} | |
name: Get Verilator Sources | |
run: git clone https://github.com/verilator/verilator ~/.verilator | |
- if: ${{ steps.cache-verilator.outputs.cache-hit != 'true' }} | |
name: Compile And Install Verilator | |
timeout-minutes: 120 | |
run: | | |
export VERILATOR_ROOT="$HOME/.verilator" | |
cd ~/.verilator | |
git switch stable | |
autoconf | |
./configure | |
make -j2 | |
ln -s ./bin/* ./ | |
- name: Add Verilator Directory To Path | |
run: echo "$HOME/.verilator/bin" >> $GITHUB_PATH | |
- name: Run non-UVM Tests | |
working-directory: ${{github.workspace}}/verif/nonuvm | |
run: ./regression.sh |