From 56a71ed6a2bb2f49802ce34ffc3361e0f447ee15 Mon Sep 17 00:00:00 2001 From: umarcor Date: Sat, 3 Apr 2021 20:04:06 +0200 Subject: [PATCH 1/5] ci: add workflow_dispatch --- .github/workflows/vunit_tests.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/vunit_tests.yml b/.github/workflows/vunit_tests.yml index 3c79f5b..27e6dd8 100644 --- a/.github/workflows/vunit_tests.yml +++ b/.github/workflows/vunit_tests.yml @@ -1,5 +1,10 @@ name: VUnit Tests -on: [push, pull_request] + +on: + push: + pull_request: + workflow_dispatch: + jobs: test: runs-on: ubuntu-latest From 8760f7f6653ee6321e08b0ff8fdffccba03d699e Mon Sep 17 00:00:00 2001 From: umarcor Date: Sun, 23 May 2021 18:50:00 +0200 Subject: [PATCH 2/5] ci: add scheduled/cron event (weekly) --- .github/workflows/vunit_tests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/vunit_tests.yml b/.github/workflows/vunit_tests.yml index 27e6dd8..153c848 100644 --- a/.github/workflows/vunit_tests.yml +++ b/.github/workflows/vunit_tests.yml @@ -3,6 +3,8 @@ name: VUnit Tests on: push: pull_request: + schedule: + - cron: '0 0 * * 5' workflow_dispatch: jobs: From d43877b9af52d0f839dfda371977f7f7752d2b64 Mon Sep 17 00:00:00 2001 From: umarcor Date: Sun, 23 May 2021 18:34:29 +0200 Subject: [PATCH 3/5] make run.py executable --- .github/workflows/vunit_tests.yml | 3 --- run.py | 0 2 files changed, 3 deletions(-) mode change 100644 => 100755 run.py diff --git a/.github/workflows/vunit_tests.yml b/.github/workflows/vunit_tests.yml index 153c848..e007be6 100644 --- a/.github/workflows/vunit_tests.yml +++ b/.github/workflows/vunit_tests.yml @@ -12,9 +12,6 @@ jobs: 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 diff --git a/run.py b/run.py old mode 100644 new mode 100755 From fd052168937a090d796bf2bf2a4138a1c1141492 Mon Sep 17 00:00:00 2001 From: umarcor Date: Thu, 1 Apr 2021 00:50:55 +0200 Subject: [PATCH 4/5] run.py: style --- run.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/run.py b/run.py index a9f9829..ac84e8d 100755 --- 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() From 9a0bdb0b2c6b3911b793b86b8ad9d109652afca2 Mon Sep 17 00:00:00 2001 From: umarcor Date: Sun, 23 May 2021 19:08:34 +0200 Subject: [PATCH 5/5] ci: style --- .github/workflows/vunit_tests.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/vunit_tests.yml b/.github/workflows/vunit_tests.yml index e007be6..4ddf9e1 100644 --- a/.github/workflows/vunit_tests.yml +++ b/.github/workflows/vunit_tests.yml @@ -8,10 +8,11 @@ on: workflow_dispatch: jobs: - test: + + Test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: VUnit/vunit_action@master - with: - cmd: python3 ./run.py + + - uses: actions/checkout@v2 + + - uses: VUnit/vunit_action@master