Update user_project_ci.yml
diff --git a/.github/workflows/user_project_ci.yml b/.github/workflows/user_project_ci.yml
index 4aa20ea..93b604a 100644
--- a/.github/workflows/user_project_ci.yml
+++ b/.github/workflows/user_project_ci.yml
@@ -181,99 +181,3 @@
git add .
git commit -m "harden project [skip ci]"
git push origin main
-
- layout:
- needs: gds
- runs-on: ubuntu-latest
- steps:
- - name: setup python
- uses: actions/setup-python@v4
- with:
- python-version: '3.10'
- - name: restore gds cache
- uses: actions/cache@v3
- with:
- path: |
- def/
- gds/
- lef/
- mag/
- maglef/
- sdc/
- sdf/
- signoff/
- spef/
- spi/
- verilog/
- openlane/tiny_user_project/runs/tiny_user_project/tmp/synthesis/post_techmap.dot
- key: ${{ runner.os }}-gds-${{ github.run_id }}
- - name: create synth svg
- run: |
- sudo apt-get install -yq graphviz
- dot -Tpng openlane/tiny_user_project/runs/tiny_user_project/tmp/synthesis/post_techmap.dot > tiny_user_project_synth.png
- - name: create layout svg
- run: |
- python -m pip install gdstk
- python << EOF
- import gdstk
- library = gdstk.read_gds('gds/tiny_user_project.gds')
- top_cells = library.top_level()
- top_cells[0].write_svg('tiny_user_project_layout.svg')
- EOF
- - name: convert to png
- run: |
- python -m pip install cairosvg
- python << EOF
- import cairosvg
- cairosvg.svg2png(url='tiny_user_project_layout.svg', write_to='tiny_user_project_layout.png', output_width=500)
- EOF
- - name: populate img cache
- uses: actions/cache@v3
- with:
- path: |
- tiny_user_project_synth.png
- tiny_user_project_layout.png
- key: ${{ runner.os }}-img-${{ github.run_id }}
-
- pages:
- if: github.ref_name == 'main'
- needs:
- - layout
- environment:
- name: github-pages
- url: ${{ steps.deployment.outputs.page_url }}
- outputs:
- page_url: ${{ steps.deployment.outputs.page_url }}
- runs-on: ubuntu-latest
- steps:
- - name: restore img cache
- uses: actions/cache@v3
- with:
- path: |
- tiny_user_project_synth.png
- tiny_user_project_layout.png
- key: ${{ runner.os }}-img-${{ github.run_id }}
- - name: setup pages
- uses: actions/configure-pages@v2
- - name: upload artifact
- uses: actions/upload-pages-artifact@v1
- with:
- path: '.'
- - name: deploy to github pages
- id: deployment
- uses: actions/deploy-pages@v1
-
- preview:
- needs: pages
- runs-on: ubuntu-latest
- steps:
- - name: add gds preview
- run: |
- PAGE_URL=${{ needs.pages.outputs.page_url }}
- PAGE_URL=$(echo "$PAGE_URL" | sed -e 's/\/$//')
- cat << EOF >> $GITHUB_STEP_SUMMARY
- # synth
- ![synth]($PAGE_URL/tiny_user_project_synth.png)
- # layout
- ![layout]($PAGE_URL/tiny_user_project_layout.png)
- EOF