1
+ name : simulation
2
+ run-name : ${{ github.actor }} running HDL simulations
3
+ on :
4
+ [push]
5
+ jobs :
6
+ changes :
7
+ runs-on : self-hosted
8
+ permissions :
9
+ pull-requests : read
10
+ outputs :
11
+ cobble : ${{ steps.changed_files.outputs.cobble }}
12
+ buck2 : ${{ steps.changed_files.outputs.buck2 }}
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ with :
16
+ submodules : ' true'
17
+ - uses : dorny/paths-filter@v3
18
+ id : filter
19
+ with :
20
+ filters : .github/filters.yml
21
+
22
+ vunit-sim :
23
+ needs : changes
24
+ if : ${{ needs.changes.outputs.buck2 == 'true' }}
25
+ runs-on : self-hosted
26
+ steps :
27
+ - run : echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
28
+ - name : Check out repository code
29
+ uses : actions/checkout@v4
30
+ with :
31
+ submodules : ' true'
32
+ - name : Update pip reqs
33
+ run : python3 -m pip install --upgrade -r tools/requirements.txt --break-system-packages
34
+ - name : Run VUnit tests
35
+ run : buck2 bxl //tools/vunit-sims.bxl:vunit_sim_gen | while IFS= read -r line; do eval "$line" ; done
36
+
37
+ bsv-sim :
38
+ # needs: changes
39
+ # if: ${{ needs.changes.outputs.cobble == 'true' }}
40
+ runs-on : self-hosted
41
+ steps :
42
+ - run : echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
43
+ - name : Check out repository code
44
+ uses : actions/checkout@v4
45
+ with :
46
+ submodules : ' true'
47
+ fetch-depth : 0
48
+ - name : Update pip reqs
49
+ run : python3 -m pip install --upgrade -r tools/requirements.txt --break-system-packages
50
+ - name : Env setup
51
+ run : cp BUILD.vars.gha BUILD.vars && mkdir build && which git && pwd && ls -al && echo "/opt/bsc-2022.01/bin" >> "$GITHUB_PATH"
52
+ - name : cobble init
53
+ run : ../vnd/cobble/cobble init .. --reinit
54
+ working-directory : ./build
55
+ - name : Run BSIM tests
56
+ run : ./cobble bluesim_test "//.*SchmittRegTests"
57
+ working-directory : ./build
0 commit comments