Skip to content

chore(deps): update actions/cache digest to 0c907a7 (#20) #51

chore(deps): update actions/cache digest to 0c907a7 (#20)

chore(deps): update actions/cache digest to 0c907a7 (#20) #51

Workflow file for this run

name: Continuous Integration
on:
push:
tags: ["*"]
branches: ["main"]
pull_request:
workflow_dispatch:
env:
verilator-version: v5.030
verilator-install-dir: verilator-install
jobs:
ci:
name: ci
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Cleanup
run: sed -i "s/%NAME%/test/g" build.sc
- name: Cache Scala
uses: coursier/cache-action@142d2738bd29f0eb9d44610828acb3a19809feab # v6
- name: Setup Scala
uses: coursier/setup-action@039f736548afa5411c1382f40a5bd9c2d30e0383 # v1
with:
jvm: temurin:21
apps: sbt mill
- name: Setup Dependencies
run: |
sudo apt-get install ccache
- name: Get Cached Verilator
id: get-cached-verilator
uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4
with:
path: ${{ env.verilator-install-dir }}
key: verilator-${{ env.verilator-version }}
- name: Install Verilator
if: steps.get-cached-verilator.outputs.cache-hit != 'true'
run: |
sudo apt-get install git help2man perl python3 make autoconf g++ flex bison numactl perl-doc libfl-dev
git clone https://github.com/verilator/verilator
unset VERILATOR_ROOT
cd verilator
git checkout ${{ env.verilator-version }}
autoconf
./configure --prefix=$(pwd)/../${{ env.verilator-install-dir }}
make
make install
- name: Set PATH
run: |
echo "$(pwd)/${{ env.verilator-install-dir }}/bin" >> $GITHUB_PATH
echo VERILATOR_ROOT="$(pwd)/${{ env.verilator-install-dir }}/share/verilator" >> $GITHUB_ENV
ln -sf $(pwd)/${{ env.verilator-install-dir }}/bin/verilator_bin $(pwd)/${{ env.verilator-install-dir }}/share/verilator/verilator_bin
- name: SBT Test
run: sbt test
- name: mill Test
run: mill _.test