From 365c144a3d3379898d64dc90860f65b425cc0830 Mon Sep 17 00:00:00 2001 From: Krystine Sherwin <93062060+KrystalDelusion@users.noreply.github.com> Date: Tue, 22 Apr 2025 10:20:39 +1200 Subject: [PATCH] ci: Run test_cell Includes special cases for partially supported cells. --- .github/workflows/test-build.yml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index b88662f0f..6b9d440ed 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -158,6 +158,40 @@ jobs: run: | find tests/**/*.err -print -exec cat {} \; + test-cells: + name: Run test_cell + runs-on: ubuntu-latest + needs: [build-yosys, pre_job] + if: needs.pre_job.outputs.should_skip != 'true' + env: + CC: clang + steps: + - name: Checkout Yosys + uses: actions/checkout@v4 + with: + persist-credentials: false + + - name: Setup environment + uses: ./.github/actions/setup-build-env + + - name: Download build artifact + uses: actions/download-artifact@v4 + with: + name: build-ubuntu-latest + + - name: Uncompress build + shell: bash + run: + tar -xvf build.tar + + - name: test_cell + shell: bash + run: | + ./yosys -p 'test_cell all' + ./yosys -p 'test_cell -nosat -aigmap $pow $pmux' + ./yosys -p 'test_cell -nosat -aigmap $eqx $nex $bweqx' + ./yosys -p 'test_cell -aigmap $buf' + test-docs: name: Run docs tests runs-on: ${{ matrix.os }}