From f6441a2e6f901748b504ef93872649c9463a404e Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Sun, 15 Mar 2026 16:07:39 +0800 Subject: initial commit: project architecture --- rv64cpu/.github/workflows/ci.yml | 64 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 rv64cpu/.github/workflows/ci.yml (limited to 'rv64cpu/.github/workflows') diff --git a/rv64cpu/.github/workflows/ci.yml b/rv64cpu/.github/workflows/ci.yml new file mode 100644 index 0000000..03551fa --- /dev/null +++ b/rv64cpu/.github/workflows/ci.yml @@ -0,0 +1,64 @@ +name: CI + +on: + push: + branches: [ main, develop ] + pull_request: + branches: [ main ] + +jobs: + verilator-build: + name: Verilator Build & Test + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y \ + verilator \ + cmake \ + build-essential \ + git \ + autoconf \ + flex \ + bison \ + libfl-dev + + - name: Check Verilator version + run: verilator --version + + - name: Configure + run: cmake -B build -DENABLE_TRACE=OFF + + - name: Build + run: cmake --build build -j$(nproc) + + - name: Test + run: ctest --test-dir build --output-on-failure --timeout 120 + + lint: + name: Verilator Lint + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Verilator + run: | + sudo apt-get update + sudo apt-get install -y verilator + + - name: Lint RTL + run: | + verilator --lint-only --sv -Wall \ + -Irtl/core/include \ + rtl/soc/richard_soc.sv \ + $(find rtl -name '*.sv' ! -name 'richard_soc.sv') \ + || echo "Lint completed with warnings" -- cgit v1.2.3