-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3cc91f6
commit a838a34
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: simulation | ||
run-name: ${{ github.actor }} running HDL simulations | ||
on: | ||
[push] | ||
jobs: | ||
changes: | ||
runs-on: self-hosted | ||
permissions: | ||
pull-requests: read | ||
outputs: | ||
cobble: ${{ steps.changed_files.outputs.cobble }} | ||
buck2: ${{ steps.changed_files.outputs.buck2 }} | ||
steps: | ||
- uses: dorny/paths-filter@v3 | ||
id: filter | ||
with: | ||
filters: | | ||
cobble: | ||
- 'tools/site_cobble/**/*' | ||
- 'vnd/**/*' | ||
- 'hdl/ip/bsv/**/*' | ||
- 'hdl/projects/ecp5_evn/**/*' | ||
- 'hdl/projects/gimlet/**/*' | ||
- 'hdl/projects/icestick/**/*' | ||
- 'hdl/projects/ignitionlet/**/*' | ||
- 'hdl/projects/psc/**/*' | ||
- 'hdl/projects/sidecar/**/*' | ||
- 'hdl/projects/ulx3s/**/*' | ||
buck2: | ||
- 'vnd/xpm/**/*' | ||
- 'prelude/**/*' | ||
- 'toolchains/**/*' | ||
- 'hdl/ip/toolchains/**/*' | ||
- 'tools/**/*' | ||
- 'hdl/ip/vhd/**/*' | ||
- 'hdl/projects/grapefruit/**/*' | ||
vunit-sim: | ||
needs: changes | ||
if: ${{ needs.changes.outputs.buck2 == 'true' }} | ||
runs-on: self-hosted | ||
steps: | ||
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- name: Update pip reqs | ||
run : python3 -m pip install --upgrade -r tools/requirements.txt --break-system-packages | ||
- name: Run VUnit tests | ||
run: buck2 bxl //tools/vunit-sims.bxl:vunit_sim_gen | while IFS= read -r line; do eval "$line" ; done | ||
|