@@ -107,14 +107,20 @@ jobs:
107107 path : ' gds_render.svg'
108108 key : ${{ runner.os }}-svg-${{ github.run_id }}
109109
110- webgl :
110+ viewer :
111111 needs : gds
112112 runs-on : ubuntu-latest
113113 steps :
114- - name : checkout repo
114+ - name : checkout GDS2glTF repo
115+ uses : actions/checkout@v2
116+ with :
117+ repository : mbalestrini/GDS2glTF
118+
119+ - name : checkout tinytapeout_gds_viewer repo
115120 uses : actions/checkout@v2
116121 with :
117- repository : s-holst/GDS2WebGL
122+ repository : mbalestrini/tinytapeout_gds_viewer
123+ path : viewer
118124
119125 - name : setup python
120126 uses : actions/setup-python@v4
@@ -127,16 +133,18 @@ jobs:
127133 path : runs
128134 key : ${{ runner.os }}-runs-${{ github.run_id }}
129135
130- - name : GDS2WebGL
136+ - name : gds2gltf
131137 run : |
132- python -m pip install gdspy pyclipper mapbox_earcut
133- python3 gds2webgl.py -i runs/wokwi/results/final/gds/*.gds -o index.html
138+ python -m pip install -r requirements.txt
139+ cp runs/wokwi/results/final/gds/*.gds tinytapeout.gds
140+ python3 gds2gltf.py tinytapeout.gds
141+ cp tinytapeout.gds.gltf viewer/
134142
135- - name : populate webgl cache
143+ - name : populate viewer cache
136144 uses : actions/cache@v2
137145 with :
138- path : index.html
139- key : ${{ runner.os }}-webgl -${{ github.run_id }}
146+ path : viewer
147+ key : ${{ runner.os }}-viewer -${{ github.run_id }}
140148
141149 artifact :
142150 needs :
@@ -168,7 +176,7 @@ jobs:
168176 pages :
169177 needs :
170178 - svg
171- - webgl
179+ - viewer
172180 environment :
173181 name : github-pages
174182 url : ${{ steps.deployment.outputs.page_url }}
@@ -181,11 +189,11 @@ jobs:
181189 with :
182190 path : ' gds_render.svg'
183191 key : ${{ runner.os }}-svg-${{ github.run_id }}
184- - name : restore webgl cache
192+ - name : restore viewer cache
185193 uses : actions/cache@v2
186194 with :
187- path : index.html
188- key : ${{ runner.os }}-webgl -${{ github.run_id }}
195+ path : viewer
196+ key : ${{ runner.os }}-viewer -${{ github.run_id }}
189197 - name : Setup Pages
190198 uses : actions/configure-pages@v2
191199 - name : Upload artifact
@@ -205,8 +213,8 @@ jobs:
205213 PAGE_URL=${{ needs.pages.outputs.page_url }}
206214 PAGE_URL=$(echo "$PAGE_URL" | sed -e 's/\/$//')
207215 cat << EOF >> $GITHUB_STEP_SUMMARY
208- # svg
216+ # layout
209217 
210- # webgl
211- [open preview]($PAGE_URL)
218+ # viewer
219+ [open preview]($PAGE_URL/viewer/tinytapeout.html )
212220 EOF
0 commit comments