Skip to content

Commit

Permalink
Use local built simulator, also in GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
schoeberl committed May 12, 2024
1 parent 5906967 commit 434bf88
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ jobs:
with:
java-version: '11'
distribution: 'temurin'
- name: build simulator
run: make init
- name: Run tests
run: sbt test
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
# including cosimulation and check against Morten's simulator
# TODO: cleanup

# init submodules and build leros-sim
init:
git submodule update --init --recursive
cd leros-sim && ./build.sh

# runs all tests
test:
sbt test
Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/leros/CompareTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import scala.collection.mutable.ListBuffer

class CompareTest extends AnyFlatSpec with ChiselScalatestTester {

val simulator = "../leros-sim/build-leros-sim/leros-sim"
val simulator = "leros-sim/build-leros-sim/leros-sim"
if ((new java.io.File(simulator)).isFile) {

val progs = leros.shared.Util.getProgs()
Expand Down

0 comments on commit 434bf88

Please sign in to comment.