-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (48 loc) · 1.4 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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: install-verilator
id: install_verilator
if: steps.get_cached_verilator.outputs.cache-hit == 'true'
run: |
cd verilator
sudo make install
#- name: SBT Test
# run: sbt test
- name: mill Test
run: mill _.test
- name: Display error file content
if: failure()
run: cat /home/runner/work/raytracer/raytracer/hs_err_pid*.log