Skip to content

chore: update tt-support-tools #562

chore: update tt-support-tools

chore: update tt-support-tools #562

Workflow file for this run

name: tt_datasheet
on:
workflow_dispatch:
push:
# Don't run on project submissions:
branches-ignore:
- projects/tt_um_*
pull_request:
# Don't run on project submissions:
paths-ignore:
- projects/tt_um_*/**
jobs:
build_datasheet:
runs-on: ubuntu-latest
env:
TT_CONFIG: sky130.yaml
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: true
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- run: pip install -r tt/requirements.txt -r tt-multiplexer/py/requirements.txt
- name: Pandoc deps
run: |
sudo apt-get update -y
sudo apt-get install -y pandoc texlive-xetex librsvg2-bin
- name: Generate datasheet
run: python ./tt/configure.py --dump-markdown datasheet.md --dump-pdf datasheet.pdf
- name: Check file existence and content
run: |
if [ ! -f "datasheet.pdf" ] || [ ! -s "datasheet.pdf" ]; then
echo "Datasheet generation failed."
exit 1
fi
- name: Generate hugo content
run: mkdir hugo && python ./tt/configure.py --build-hugo-content hugo
- name: Archive PDF
uses: actions/upload-artifact@v4
with:
name: PDF
path: datasheet.pdf
- name: upload shuttle_index.json
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: shuttle_index
path: shuttle_index.json
- name: upload hugo content
uses: actions/upload-artifact@v4
with:
name: hugo_content
path: hugo
- name: Prepare GitHub pages archive
run: |
mkdir gh_pages
cp datasheet.pdf shuttle_index.json gh_pages
- name: Upload
uses: actions/upload-pages-artifact@v3
with:
path: 'gh_pages'
deploy_pages:
needs: build_datasheet
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4