Skip to content

Commit ffc5984

Browse files
committed
Add NVC action
1 parent 0c44a80 commit ffc5984

File tree

2 files changed

+92
-76
lines changed

2 files changed

+92
-76
lines changed

.github/workflows/netwiz_ci.yml

Lines changed: 71 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,71 @@
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

CITATION.cff

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
cff-version: 1.2.0
2-
title: NetWiz
3-
message: >-
4-
If you use this software, please cite it using the
5-
metadata from this file.
6-
type: software
7-
authors:
8-
- given-names: Geir
9-
family-names: Drange
10-
orcid: 'https://orcid.org/0009-0009-6795-8583'
11-
repository-code: 'https://github.com/geddy11/netwiz'
12-
url: 'https://geddy11.github.io/netwiz/index.html'
13-
abstract: >-
14-
NetWiz is a stand-alone VHDL library for network protocol
15-
packet generation and manipulation.
16-
keywords:
17-
- VHDL
18-
- Testbench
19-
- Protocols
20-
license: MIT
21-
version: 1.3.1
1+
cff-version: 1.2.0
2+
title: NetWiz
3+
message: >-
4+
If you use this software, please cite it using the
5+
metadata from this file.
6+
type: software
7+
authors:
8+
- given-names: Geir
9+
family-names: Drange
10+
orcid: 'https://orcid.org/0009-0009-6795-8583'
11+
repository-code: 'https://github.com/geddy11/netwiz'
12+
url: 'https://geddy11.github.io/netwiz/index.html'
13+
abstract: >-
14+
NetWiz is a stand-alone VHDL library for network protocol
15+
packet generation and manipulation.
16+
keywords:
17+
- VHDL
18+
- Testbench
19+
- Protocols
20+
license: MIT
21+
version: 1.3.1

0 commit comments

Comments
 (0)