Skip to content

Commit 8b594cf

Browse files
committed
[#72831] GHA: Added including tests' simulation in documentation
Signed-off-by: Grzegorz Latosinski <[email protected]>
1 parent d424636 commit 8b594cf

File tree

3 files changed

+108
-106
lines changed

3 files changed

+108
-106
lines changed

.github/workflows/build-docs.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
6+
permissions:
7+
contents: write
8+
9+
jobs:
10+
build-and-test:
11+
name: Build and test
12+
runs-on: ubuntu-latest
13+
env:
14+
DEBIAN_FRONTEND: "noninteractive"
15+
steps:
16+
- name: Install dependencies
17+
run: |
18+
sudo apt -qqy update
19+
sudo apt -qqy --no-install-recommends install help2man libfl-dev make g++ git bison flex gperf \
20+
libreadline-dev libbz2-dev autoconf python3-sphinx \
21+
python3-docopt
22+
23+
- name: Setup repository
24+
uses: actions/checkout@v4
25+
26+
- name: Get Submodules
27+
run: |
28+
git submodule update --init --recursive
29+
30+
- name: Install Pyenv
31+
run: |
32+
./install.sh
33+
34+
- name: Build Icarus
35+
run: |
36+
git clone https://github.com/steveicarus/iverilog.git
37+
cd iverilog
38+
git checkout 06077ed026b4d8498d9129a6acfb0b44d0b51f18
39+
sh autoconf.sh
40+
./configure
41+
make -j$(nproc)
42+
sudo make install
43+
iverilog -V
44+
45+
- name: Build Verilator
46+
run: |
47+
git clone https://github.com/verilator/verilator -b v5.024
48+
cd verilator
49+
autoconf
50+
./configure
51+
make -j$(nproc)
52+
sudo make install
53+
verilator --version
54+
55+
- name: Run Tests
56+
run: |
57+
make install-uvm
58+
source activate.sh
59+
make tests
60+
61+
- name: Upload artifacts
62+
uses: actions/upload-artifact@v4
63+
with:
64+
name: tests-results
65+
path: verification/cocotb
66+
67+
docs-build:
68+
name: Documentation build
69+
runs-on: ubuntu-latest
70+
env:
71+
DEBIAN_FRONTEND: "noninteractive"
72+
steps:
73+
- name: Install dependencies
74+
run: |
75+
sudo apt -qqy update && sudo apt -qqy --no-install-recommends install \
76+
python3 python3-pip
77+
78+
- name: Setup repository
79+
uses: actions/checkout@v4
80+
81+
- uses: actions/download-artifact@v4
82+
83+
- name: Generate VP
84+
run: |
85+
export I3C_ROOT_DIR="`pwd`"
86+
pip3 install git+https://github.com/antmicro/testplanner.git
87+
REPO_URL="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/tree/$GITHUB_REF_NAME/" make verification-docs-with-sim
88+
89+
- name: Build Docs
90+
run: |
91+
pushd testplans-template
92+
pip3 install -r requirements.txt
93+
TZ=UTC make html
94+
popd
95+
96+
- name: Pack artifacts
97+
if: always()
98+
uses: actions/upload-artifact@v4
99+
with:
100+
name: docs
101+
path: ./testplans-template/build
102+
103+
- name: Deploy
104+
uses: peaceiris/actions-gh-pages@v4
105+
if: ${{ github.ref == 'refs/heads/main' }}
106+
with:
107+
github_token: ${{ secrets.GITHUB_TOKEN }}
108+
publish_dir: ./testplans-template/build/html

.github/workflows/tests.yml

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)