Skip to content

Update test.yml

Update test.yml #7

Workflow file for this run

name: Continuous Integration
on: [push, pull_request]
env:
VERILATOR_VER: "v4.210"
jobs:
ci:
name: ci
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cleanup
run: sed -i "s/%NAME%/test/g" build.sc
- name: Setup Scala
uses: olafurpg/setup-scala@v10
with:
java-version: adopt@1.11
- name: Setup Mill
uses: jodersky/setup-mill@v0.2.3
with:
mill-version: 0.10.12
- name: Cache Scala
uses: coursier/cache-action@v5
- name: Get Cached Verilator
id: get_cached_verilator
uses: actions/cache@v4
with:
path: verilator
key: ${{ runner.os }}-verilator-${{ env.VERILATOR_VER }}
- name: setup-verilator
id: setup_verilator
if: steps.get_cached_verilator.outputs.cache-hit != 'true'
uses: v0xnihili/install-verilator-action@main
with:
version: ${{ env.VERILATOR_VER }}
- name: SBT Test
run: sbt test
- name: mill Test
run: mill _.test