Initial commit
This commit is contained in:
17
.github/workflows/docs.yaml
vendored
Normal file
17
.github/workflows/docs.yaml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
name: docs
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Build docs
|
||||
uses: TinyTapeout/tt-gds-action/docs@tt06
|
||||
45
.github/workflows/gds.yaml
vendored
Normal file
45
.github/workflows/gds.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: gds
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
gds:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Build GDS
|
||||
uses: TinyTapeout/tt-gds-action@tt06
|
||||
|
||||
precheck:
|
||||
needs: gds
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Run Tiny Tapeout Precheck
|
||||
uses: TinyTapeout/tt-gds-action/precheck@tt06
|
||||
|
||||
gl_test:
|
||||
needs: gds
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: GL test
|
||||
uses: TinyTapeout/tt-gds-action/gl_test@tt06
|
||||
|
||||
viewer:
|
||||
needs: gds
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
pages: write # to deploy to Pages
|
||||
id-token: write # to verify the deployment originates from an appropriate source
|
||||
steps:
|
||||
- uses: TinyTapeout/tt-gds-action/viewer@tt06
|
||||
48
.github/workflows/test.yaml
vendored
Normal file
48
.github/workflows/test.yaml
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
name: test
|
||||
on: [push, workflow_dispatch]
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install iverilog
|
||||
shell: bash
|
||||
run: sudo apt-get update && sudo apt-get install -y iverilog
|
||||
|
||||
# Set Python up and install cocotb
|
||||
- name: Setup python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install cocotb 1.8.x
|
||||
shell: bash
|
||||
run: |
|
||||
pip install cocotb~=1.8.0
|
||||
cocotb-config --libpython
|
||||
cocotb-config --python-bin
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
cd test
|
||||
make clean
|
||||
make
|
||||
# make will return success even if the test fails, so check for failure in the results.xml
|
||||
! grep failure results.xml
|
||||
|
||||
- name: Test Summary
|
||||
uses: test-summary/action@v2.2
|
||||
with:
|
||||
paths: "test/results.xml"
|
||||
if: always()
|
||||
|
||||
- name: upload vcd
|
||||
if: success() || failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: test-vcd
|
||||
path: |
|
||||
test/tb.vcd
|
||||
test/result.xml
|
||||
Reference in New Issue
Block a user