diff --git a/.github/workflows/vunit_tests.yml b/.github/workflows/vunit_tests.yml index 3c79f5b..4ddf9e1 100644 --- a/.github/workflows/vunit_tests.yml +++ b/.github/workflows/vunit_tests.yml @@ -1,13 +1,18 @@ name: VUnit Tests -on: [push, pull_request] + +on: + push: + pull_request: + schedule: + - cron: '0 0 * * 5' + workflow_dispatch: + jobs: - test: + + Test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: srt32/git-actions@v0.0.3 - with: - args: git update-index --chmod=+x run.py - - uses: VUnit/vunit_action@master - with: - cmd: python3 ./run.py + + - uses: actions/checkout@v2 + + - uses: VUnit/vunit_action@master diff --git a/run.py b/run.py old mode 100644 new mode 100755 index a9f9829..ac84e8d --- a/run.py +++ b/run.py @@ -5,20 +5,17 @@ from pathlib import Path from vunit import VUnit -prj = VUnit.from_argv() - _rel = Path(__file__).parent / "rel" -library_names = ["support", "ibm", "clib", "tri"] -for library_name in library_names: - prj.add_library(library_name).add_source_files( - _rel / f"src/vhdl/{library_name}/*.vhdl" - ) +prj = VUnit.from_argv() + +for libName in ["support", "ibm", "clib", "tri"]: + prj.add_library(libName).add_source_files(_rel / "src" / "vhdl" / f"{libName}" / "*.vhdl") # VUnit doesn't accept libraries named work. These files are compiled to the top library -prj.add_library("top").add_source_files(_rel / "src/vhdl/work/*.vhdl") +prj.add_library("top").add_source_files(_rel / "src" / "vhdl" / "work" / "*.vhdl") # Simulation only library containing VHDL mocks for Verilog UNIMACROs -prj.add_library("unimacro").add_source_files(_rel / "sim/unimacro/*.vhdl") +prj.add_library("unimacro").add_source_files(_rel / "sim" / "unimacro" / "*.vhdl") prj.main()