|
1 |
| -name: 'NetWiz CI' |
2 |
| - |
3 |
| -on: |
4 |
| - workflow_dispatch: |
5 |
| - push: |
6 |
| - branches: |
7 |
| - - main |
8 |
| - pull_request: |
9 |
| - |
10 |
| -jobs: |
11 |
| - ghdl_sim: |
12 |
| - runs-on: ubuntu-latest |
13 |
| - steps: |
14 |
| - - uses: ghdl/setup-ghdl-ci@nightly |
15 |
| - with: |
16 |
| - backend: llvm |
17 |
| - - name: checkout |
18 |
| - uses: actions/checkout@v3 |
19 |
| - - name: sim |
20 |
| - working-directory: ./script |
21 |
| - run: bash ghdl_run_all.sh |
22 |
| - # while we wait for the official nvc githib action, we simply install nvc in the GHDL container. |
23 |
| - nvc_sim: |
24 |
| - runs-on: ubuntu-latest |
25 |
| - steps: |
26 |
| - - uses: ghdl/setup-ghdl-ci@nightly |
27 |
| - with: |
28 |
| - backend: llvm |
29 |
| - - name: checkout |
30 |
| - uses: actions/checkout@v3 |
31 |
| - # nvc install from source |
32 |
| - - name: clone |
33 |
| - run: git clone https://github.com/nickg/nvc.git |
34 |
| - - name: prepare |
35 |
| - working-directory: ./nvc |
36 |
| - run: ./autogen.sh && mkdir build |
37 |
| - - name: update |
38 |
| - run: sudo apt-get install build-essential automake autoconf flex check llvm-dev pkg-config zlib1g-dev libdw-dev libffi-dev libzstd-dev |
39 |
| - - name: compile |
40 |
| - working-directory: ./nvc/build |
41 |
| - run: ../configure && make && sudo make install |
42 |
| - # simulate |
43 |
| - - name: sim |
44 |
| - working-directory: ./script |
45 |
| - run: bash nvc_run_all.sh |
46 |
| - document: |
47 |
| - needs: [ghdl_sim, nvc_sim] |
48 |
| - runs-on: ubuntu-latest |
49 |
| - steps: |
50 |
| - - uses: DenverCoder1/[email protected] |
51 |
| - with: |
52 |
| - github_token: ${{ secrets.GITHUB_TOKEN }} |
53 |
| - config_file: Doxyfile |
54 |
| - folder: html/html |
55 |
| - target_folder: docs |
| 1 | +name: 'NetWiz CI' |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + push: |
| 6 | + branches: |
| 7 | + - main |
| 8 | + pull_request: |
| 9 | + |
| 10 | +jobs: |
| 11 | + ghdl_sim: |
| 12 | + runs-on: ubuntu-latest |
| 13 | + steps: |
| 14 | + - uses: ghdl/setup-ghdl-ci@nightly |
| 15 | + with: |
| 16 | + backend: llvm |
| 17 | + - name: checkout |
| 18 | + uses: actions/checkout@v3 |
| 19 | + - name: sim |
| 20 | + working-directory: ./script |
| 21 | + run: bash ghdl_run_all.sh |
| 22 | + # while we wait for the official nvc githib action, we simply install nvc in the GHDL container. |
| 23 | + nvc_simold: |
| 24 | + runs-on: ubuntu-latest |
| 25 | + steps: |
| 26 | + - uses: ghdl/setup-ghdl-ci@nightly |
| 27 | + with: |
| 28 | + backend: llvm |
| 29 | + - name: checkout |
| 30 | + uses: actions/checkout@v3 |
| 31 | + # nvc install from source |
| 32 | + - name: clone |
| 33 | + run: git clone https://github.com/nickg/nvc.git |
| 34 | + - name: prepare |
| 35 | + working-directory: ./nvc |
| 36 | + run: ./autogen.sh && mkdir build |
| 37 | + - name: update |
| 38 | + run: sudo apt-get install build-essential automake autoconf flex check llvm-dev pkg-config zlib1g-dev libdw-dev libffi-dev libzstd-dev |
| 39 | + - name: compile |
| 40 | + working-directory: ./nvc/build |
| 41 | + run: ../configure && make && sudo make install |
| 42 | + # simulate |
| 43 | + - name: sim |
| 44 | + working-directory: ./script |
| 45 | + run: bash nvc_run_all.sh |
| 46 | + |
| 47 | + nvc_sim: |
| 48 | + runs-on: ubuntu-latest |
| 49 | + steps: |
| 50 | + - uses: nickg/setup-nvc-ci@v1 |
| 51 | + with: |
| 52 | + version: latest |
| 53 | + - name: checkout |
| 54 | + uses: actions/checkout@v3 |
| 55 | + - name: sim |
| 56 | + working-directory: ./script |
| 57 | + run: bash nvc_run_all.sh |
| 58 | + |
| 59 | + |
| 60 | +- run: | |
| 61 | + nvc --version # NVC binary added to path |
| 62 | + document: |
| 63 | + needs: [ghdl_sim, nvc_sim] |
| 64 | + runs-on: ubuntu-latest |
| 65 | + steps: |
| 66 | + - uses: DenverCoder1/[email protected] |
| 67 | + with: |
| 68 | + github_token: ${{ secrets.GITHUB_TOKEN }} |
| 69 | + config_file: Doxyfile |
| 70 | + folder: html/html |
| 71 | + target_folder: docs |
0 commit comments