Skip to content

Commit 05b3e23

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

File tree

3 files changed

+107
-106
lines changed

3 files changed

+107
-106
lines changed

.github/workflows/build-docs.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
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+
- name: Upload artifacts
61+
uses: actions/upload-artifacts@v4
62+
with:
63+
name: tests-results
64+
path: verification/cocotb
65+
66+
docs-build:
67+
name: Documentation build
68+
runs-on: ubuntu-latest
69+
env:
70+
DEBIAN_FRONTEND: "noninteractive"
71+
steps:
72+
- name: Install dependencies
73+
run: |
74+
sudo apt -qqy update && sudo apt -qqy --no-install-recommends install \
75+
python3 python3-pip
76+
77+
- name: Setup repository
78+
uses: actions/checkout@v4
79+
80+
- uses: actions/download-artifact@v4
81+
82+
- name: Generate VP
83+
run: |
84+
export I3C_ROOT_DIR="`pwd`"
85+
pip3 install git+https://github.com/antmicro/testplanner.git
86+
REPO_URL="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/tree/$GITHUB_REF_NAME/" make verification-docs-with-sim
87+
88+
- name: Build Docs
89+
run: |
90+
pushd testplans-template
91+
pip3 install -r requirements.txt
92+
TZ=UTC make html
93+
popd
94+
95+
- name: Pack artifacts
96+
if: always()
97+
uses: actions/upload-artifact@v4
98+
with:
99+
name: docs
100+
path: ./testplans-template/build
101+
102+
- name: Deploy
103+
uses: peaceiris/actions-gh-pages@v4
104+
if: ${{ github.ref == 'refs/heads/main' }}
105+
with:
106+
github_token: ${{ secrets.GITHUB_TOKEN }}
107+
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)