Skip to content

Commit a8a2446

Browse files
committed
Add CI for tapeout
1 parent e4983c0 commit a8a2446

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/tapeout.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
merge_group:
7+
8+
jobs:
9+
submit:
10+
runs-on: ubuntu-22.04
11+
defaults:
12+
run:
13+
working-directory: ./riscv-demo
14+
steps:
15+
- name: Check out source code
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
- uses: actions/setup-python@v4
20+
with:
21+
python-version: '3.10'
22+
- name: Set up PDM
23+
uses: pdm-project/setup-pdm@v4
24+
with:
25+
cache: true
26+
cache-dependency-path: ./riscv-demo/pdm.lock
27+
- name: Install dependencies
28+
run: |
29+
pdm install
30+
- run: |
31+
pdm run chipflow silicon submit
32+
env:
33+
CHIPFLOW_API_KEY_ID: ${{ secrets.CHIPFLOW_API_KEY_ID }}
34+
CHIPFLOW_API_KEY_SECRET: ${{ secrets.CHIPFLOW_API_KEY_SECRET }}

riscv-demo/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,7 @@ test = [
3232
[tool.pdm.scripts]
3333
_.env_file = ".env.toolchain"
3434
test.cmd = "pytest"
35+
submit.cmd = "chipflow silicon submit"
3536
pre_install = "git config --global core.longpaths true"
3637

38+

0 commit comments

Comments
 (0)