-
Notifications
You must be signed in to change notification settings - Fork 4
85 lines (71 loc) · 2.01 KB
/
tt_datasheet.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
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