Skip to content

Commit 365c144

Browse files
ci: Run test_cell
Includes special cases for partially supported cells.
1 parent 66f66d5 commit 365c144

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/test-build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,40 @@ jobs:
158158
run: |
159159
find tests/**/*.err -print -exec cat {} \;
160160
161+
test-cells:
162+
name: Run test_cell
163+
runs-on: ubuntu-latest
164+
needs: [build-yosys, pre_job]
165+
if: needs.pre_job.outputs.should_skip != 'true'
166+
env:
167+
CC: clang
168+
steps:
169+
- name: Checkout Yosys
170+
uses: actions/checkout@v4
171+
with:
172+
persist-credentials: false
173+
174+
- name: Setup environment
175+
uses: ./.github/actions/setup-build-env
176+
177+
- name: Download build artifact
178+
uses: actions/download-artifact@v4
179+
with:
180+
name: build-ubuntu-latest
181+
182+
- name: Uncompress build
183+
shell: bash
184+
run:
185+
tar -xvf build.tar
186+
187+
- name: test_cell
188+
shell: bash
189+
run: |
190+
./yosys -p 'test_cell all'
191+
./yosys -p 'test_cell -nosat -aigmap $pow $pmux'
192+
./yosys -p 'test_cell -nosat -aigmap $eqx $nex $bweqx'
193+
./yosys -p 'test_cell -aigmap $buf'
194+
161195
test-docs:
162196
name: Run docs tests
163197
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)