Merge branch 'cell_doc_tree' of github.com:antmicro/skywater-pdk into cell_doc_tree

This commit is contained in:
Wojciech Gryncewicz 2020-11-25 13:51:27 +01:00
commit ab19ce3148
1 changed files with 36 additions and 0 deletions

36
.github/workflows/generate-rst.yml vendored Normal file
View File

@ -0,0 +1,36 @@
name: Generate cells docs
on:
push:
pull_request:
jobs:
generate-cells:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Generate cells READMEs
run: |
sudo apt update
sudo apt install -y python3 python3-pip git tar gzip
pip3 install docutils sphinx
SUBMODULE_VERSION=latest make submodules -j3 || make submodules -j1
scripts/python-skywater-pdk/skywater_pdk/cell_list.py libraries/*/latest/
scripts/python-skywater-pdk/skywater_pdk/cell-readme-generate.py libraries/*/latest/cells/*
find ./libraries -name cell-list.rst | tar -acf libs.tar -T -
find ./libraries -name README.rst | tar -rf libs.tar -T -
find ./libraries -wholename */cells/*.svg | tar -rf libs.tar -T -
gzip libs.tar
- uses: actions/upload-artifact@v2
with:
name: cells-docs
path: libs.tar.gz