-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci.yml
More file actions
28 lines (23 loc) · 684 Bytes
/
ci.yml
File metadata and controls
28 lines (23 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Verilog smoke test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Icarus Verilog
run: |
sudo apt-get update
sudo apt-get install -y iverilog
- name: Compile Verilog testbench
run: |
mkdir -p sim
iverilog -o sim/xor_tb_out tb/tb_xor_cipher.v src/*.v
- name: Run simulation (smoke)
run: |
if [ -f sim/xor_tb_out ]; then vvp sim/xor_tb_out || true; else echo "Compilation failed"; exit 1; fi