@@ -42,20 +42,28 @@ jobs:
4242 echo "run-id=${RUN_ID}" >> "$GITHUB_OUTPUT"
4343 env :
4444 GH_TOKEN : ${{ github.token }}
45- - name : Download artifact from "Full Flow" workflow
45+ - name : Download GDS artifact from "Full Flow" workflow
4646 uses : actions/download-artifact@v4
4747 with :
4848 name : croc-gds
4949 github-token : ${{ github.token }}
5050 repository : ${{ github.repository }}
5151 run-id : ${{ steps.get-run-id.outputs.run-id }}
5252 path : klayout
53+ - name : Download DEF artifact from "Full Flow" workflow
54+ uses : actions/download-artifact@v4
55+ with :
56+ name : croc-openroad-out
57+ github-token : ${{ github.token }}
58+ repository : ${{ github.repository }}
59+ run-id : ${{ steps.get-run-id.outputs.run-id }}
60+ path : openroad
5361
5462 - name : Checkout ArtistIC repository
5563 uses : actions/checkout@v4
5664 with :
5765 repository : pulp-platform/artistic
58- ref : 33986fa39e07d89a8337d65e84b01113bf18ea03
66+ ref : 31277dfbcb5f15d219c9834bc9e6f1c9b4705bf3
5967 path : artistic
6068 - name : Update package lists and install Inkscape, img2pdf
6169 run : |
7482 path : doc/artwork/logo.png
7583 continue-on-error : true
7684
77- - name : Install ImageMagick
85+ - name : Install ImageMagick, Potrace, Pillow, svgpathtools
7886 run : |
79- sudo apt-get install -y imagemagick
87+ sudo apt-get install -y imagemagick potrace
88+ pip install --break-system-packages svgpathtools Pillow
8089 - name : Install packages in OSEDA
8190 uses : ./.github/actions/oseda-cmd
8291 with :
@@ -103,7 +112,7 @@ jobs:
103112 - name : Generate logo GDS
104113 uses : ./.github/actions/oseda-cmd
105114 with :
106- cmd : " cd artistic; python3 scripts/meerkat.py -m '145,145,145,145' - i meerkat_work/logo_mono.png -g meerkat_work/croc_tm.gds -l 134 -n croc -s meerkat_work/croc_logo.svg -o meerkat_work/croc_logo.gds"
115+ cmd : " cd artistic; python3 scripts/meerkat.py -i meerkat_work/logo_mono.png -g meerkat_work/croc_tm.gds -l 134 -n croc -s meerkat_work/croc_logo.svg -o meerkat_work/croc_logo.gds"
107116 - name : Upload logo GDS
108117 uses : actions/upload-artifact@v4
109118 with :
@@ -162,6 +171,13 @@ jobs:
162171 mv artistic/renderics//DPI__croc_0-0.png artistic/renderics/croc_render.png
163172 mv artistic/renderics//PDF__croc_0-0.pdf artistic/renderics/croc_render.pdf
164173 convert artistic/renderics/croc_render.png artistic/renderics/croc_render.jpg
174+ - name : Create annotated outlines SVG
175+ run : |
176+ python3 artistic/scripts/gen_outline.py -i openroad/out/croc.def -o artistic/renderics/croc_modules.svg -b artistic/renderics/croc_render.jpg --lef_files ihp13/pdk/ihp-sg13g2/libs.ref/sg13g2_sram/lef/*.lef --px_scale 15000 --module_json .github/config/croc_modules.json --opacity 0.65 --font_size 35 --luminosity 0.85
177+ - name : Create annotated outlines PNG and PDF
178+ run : |
179+ inkscape artistic/renderics/croc_modules.svg -o artistic/renderics/croc_modules.png
180+ inkscape artistic/renderics/croc_modules.svg -o artistic/renderics/croc_modules.pdf
165181 - name : Upload render PNG
166182 uses : actions/upload-artifact@v4
167183 with :
@@ -180,6 +196,24 @@ jobs:
180196 name : render-jpg
181197 path : artistic/renderics/croc_render.jpg
182198 continue-on-error : true
199+ - name : Upload render module SVG
200+ uses : actions/upload-artifact@v4
201+ with :
202+ name : render-module-svg
203+ path : artistic/renderics/croc_modules.svg
204+ continue-on-error : true
205+ - name : Upload render module PNG
206+ uses : actions/upload-artifact@v4
207+ with :
208+ name : render-module-png
209+ path : artistic/renderics/croc_modules.png
210+ continue-on-error : true
211+ - name : Upload render module PDF
212+ uses : actions/upload-artifact@v4
213+ with :
214+ name : render-module-pdf
215+ path : artistic/renderics/croc_modules.pdf
216+ continue-on-error : true
183217# Map render and deploy below:
184218 - name : Render b/w map layer tiles
185219 uses : ./.github/actions/oseda-cmd
@@ -203,6 +237,10 @@ jobs:
203237 - name : Copy GDS to be deployed
204238 run : |
205239 cp artistic/meerkat_work/croc_logo.gds artistic/mapify/croc_logo.gds
240+ - name : Copy Outlines to be deployed
241+ run : |
242+ cp artistic/renderics/croc_modules.* artistic/mapify/
243+ cp artistic/renderics/croc_render.jpg artistic/mapify/
206244 - name : Upload OpenStreetMap DB to pages
207245 uses : actions/upload-pages-artifact@v3
208246 with :
0 commit comments