summaryrefslogtreecommitdiff
path: root/.github/workflows/test.yml
diff options
context:
space:
mode:
authorJiuyang Liu2021-07-13 12:26:05 +0800
committerGitHub2021-07-13 12:26:05 +0800
commit6bb23419e4044ba520a7e2e88b0179eabc131c6e (patch)
treef7bd555f1f3bd497dce18ccbdb090e01ec5f1843 /.github/workflows/test.yml
parent0d4bfbccd8b31230d16d3039429df7358970bf99 (diff)
parentfabbd209a964d1573bf9371adbaa8373cba8e55e (diff)
Merge pull request #2041 from chipsalliance/ci_test
Fix CI.
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r--.github/workflows/test.yml20
1 files changed, 12 insertions, 8 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index b365776f..6d68ad1a 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -12,23 +12,29 @@ on:
jobs:
ci:
name: ci
- runs-on: ubuntu-20.04
strategy:
matrix:
+ system: ["ubuntu-20.04"]
+ jvm: ["adopt@1.8"]
scala: ["2.13.6", "2.12.13"]
verilator: ["4.204"]
z3: ["4.8.10"]
+ runs-on: ${{ matrix.system }}
steps:
- - name: Install Z3 Build Dependencies
- run: sudo apt-get install -y git make autoconf g++ flex bison libfl2 libfl-dev
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Install Z3 Build Dependencies(Ubuntu)
+ if: matrix.system == 'ubuntu-20.04'
+ run: sudo apt-get install -y libfl2 libfl-dev
- name: Cache Z3 ${{ matrix.z3 }}
uses: actions/cache@v2
id: cache-z3
with:
path: z3-z3-${{ matrix.z3 }}
- key: ${{ runner.os }}-z3-${{ matrix.z3 }}
+ key: ${{ matrix.system }}-z3-${{ matrix.z3 }}
- name: Compile Z3
if: steps.cache-z3.outputs.cache-hit != 'true'
run: |
@@ -52,7 +58,7 @@ jobs:
id: cache-verilator
with:
path: verilator-${{ matrix.verilator }}
- key: ${{ runner.os }}-verilator-${{ matrix.verilator }}
+ key: ${{ matrix.system }}-verilator-${{ matrix.verilator }}
- name: Compile Verilator ${{ matrix.verilator }}
if: steps.cache-verilator.outputs.cache-hit != 'true'
run: |
@@ -68,12 +74,10 @@ jobs:
sudo make install
verilator --version
- - name: Checkout
- uses: actions/checkout@v2
- name: Setup Scala
uses: olafurpg/setup-scala@v10
with:
- java-version: adopt@1.8
+ java-version: ${{ matrix.jvm }}
- name: Cache Scala
uses: coursier/cache-action@v5
- name: Documentation (Scala 2.12 only)