feat: update project tt_um_wokwi_413918022277139457 from brendonchang… #440
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-24.04 | |
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: 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: 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-24.04 | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |