c01 course compoments #62
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
# .github/workflows/convert-to-pdf.yml | |
name: MD to PDF | |
# This workflow is triggered on pushes to the repository. | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'Chapter_00_Preparations/**.md' | |
- 'Chapter_01_Introduction/**.md' | |
- 'Chapter_02_Workflow/**.md' | |
- 'Chapter_03_Design_and_example_pick/**.md' | |
- 'Chapter_04_Openroad_first_run/**.md' | |
- 'Chapter_05_PDK_Examination/**.md' | |
- 'Chapter_06_Data_in_Openroad/**.md' | |
- 'Chapter_07_LVS_and_DRC/**.md' | |
- 'Chapter_08_Simulation_and_PPA/**.md' | |
- 'Chapter_09_Scripting/**.md' | |
- 'Chapter_10_GDS_and_Tapeout/**.md' | |
workflow_dispatch: | |
branches: | |
- main | |
jobs: | |
converttopdf: | |
name: Build Course Summary PDF | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: create pdf folder | |
id: pdf_folder | |
run: | | |
mkdir pdf | |
list_trainings=$(find Chapter* -type f -name "*training.md") | |
echo $list_trainings | |
echo list_t=$list_trainings >> $GITHUB_OUTPUT | |
echo c00=$('Chapter_00_Preparations/c00_preparations.md') >> $GITHUB_OUTPUT | |
- name: combined | |
uses: docker://pandoc/latex:3.5 | |
with: | |
args: --output=pdf/combined.pdf --from=markdown+rebase_relative_paths ${{ steps.pdf_folder.outputs.list1 }} | |
- name: c01_l | |
uses: docker://pandoc/latex:3.5 | |
with: | |
args: >- | |
--output=pdf/c01_lecture.pdf | |
--slide-level 2 | |
--shift-heading-level=-1 | |
--toc | |
--columns=50 | |
-t beamer | |
--from=markdown+rebase_relative_paths | |
Chapter_01_Introduction/c01_lecture.md | |
- name: c02_l | |
uses: docker://pandoc/latex:3.5 | |
with: | |
args: >- | |
--output=pdf/c02_lecture.pdf | |
--slide-level 2 | |
--shift-heading-level=-1 | |
--toc | |
--columns=50 | |
-t beamer | |
--from=markdown+rebase_relative_paths | |
Chapter_02_Workflow/c02_lecture.md | |
- name: c03_l | |
uses: docker://pandoc/latex:3.5 | |
with: | |
args: >- | |
--output=pdf/c03_lecture.pdf | |
--slide-level 2 | |
--shift-heading-level=-1 | |
--toc | |
--columns=50 | |
-t beamer | |
--from=markdown+rebase_relative_paths | |
Chapter_03_Design_and_example_pick/c03_lecture.md | |
- name: c04_l | |
uses: docker://pandoc/latex:3.5 | |
with: | |
args: >- | |
--output=pdf/c04_lecture.pdf | |
--slide-level 2 | |
--shift-heading-level=-1 | |
--toc | |
--columns=50 | |
-t beamer | |
--from=markdown+rebase_relative_paths | |
Chapter_04_Openroad_first_run/c04_lecture.md | |
- name: c05_l | |
uses: docker://pandoc/latex:3.5 | |
with: | |
args: >- | |
--output=pdf/c05_lecture.pdf | |
--slide-level 2 | |
--shift-heading-level=-1 | |
--toc | |
--columns=50 | |
-t beamer | |
--from=markdown+rebase_relative_paths | |
Chapter_05_PDK_Examination/c05_lecture.md | |
- name: c00_t | |
uses: docker://pandoc/latex:3.5 | |
with: | |
args: >- | |
--output=pdf/c00_preparations.pdf | |
--slide-level 2 | |
--shift-heading-level=-1 | |
--toc | |
--columns=50 | |
-t beamer | |
--from=markdown+rebase_relative_paths | |
Chapter_00_Preparations/c00_preparations.md | |
# - name: c01_t | |
# uses: docker://pandoc/latex:3.5 | |
# with: | |
# args: >- | |
# --output=pdf/c01_training.pdf | |
# --slide-level 2 | |
# --shift-heading-level=-1 | |
# --toc | |
# --columns=50 | |
# -t beamer | |
# --from=markdown+rebase_relative_paths | |
# Chapter_01_Introduction/c01_training.md | |
# - name: c02_t | |
# uses: docker://pandoc/latex:3.5 | |
# with: | |
# args: >- | |
# --output=pdf/c02_training.pdf | |
# --slide-level 2 | |
# --shift-heading-level=-1 | |
# --toc | |
# --columns=50 | |
# -t beamer | |
# --from=markdown+rebase_relative_paths | |
# Chapter_02_Workflow/c02_training.md | |
- name: c03_t | |
uses: docker://pandoc/latex:3.5 | |
with: | |
args: >- | |
--output=pdf/c03_training.pdf | |
--slide-level 2 | |
--shift-heading-level=-1 | |
--toc | |
--columns=50 | |
-t beamer | |
--from=markdown+rebase_relative_paths | |
Chapter_03_Design_and_example_pick/c03_training.md | |
- name: c04_t | |
uses: docker://pandoc/latex:3.5 | |
with: | |
args: >- | |
--output=pdf/c04_training.pdf | |
--slide-level 2 | |
--shift-heading-level=-1 | |
--toc | |
--columns=50 | |
-t beamer | |
--from=markdown+rebase_relative_paths | |
Chapter_04_Openroad_first_run/c04_training.md | |
- name: c05_t | |
uses: docker://pandoc/latex:3.5 | |
with: | |
args: >- | |
--output=pdf/c05_training.pdf | |
--slide-level 2 | |
--shift-heading-level=-1 | |
--toc | |
--columns=50 | |
-t beamer | |
--from=markdown+rebase_relative_paths | |
Chapter_05_PDK_Examination/c05_training.md | |
- name: upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: course_summary | |
path: pdf | |
# jobs: | |
# converttopdf: | |
# name: Build Course Summary PDF | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: checkout | |
# uses: actions/checkout@v3 | |
# - name: chapter0 | |
# uses: baileyjm02/markdown-to-pdf@v1 | |
# with: | |
# input_path: Chapter_00_Preparations | |
# output_dir: md | |
# build_html: false | |
# - name: chapter1 | |
# uses: baileyjm02/markdown-to-pdf@v1 | |
# with: | |
# input_path: Chapter_01_Introduction | |
# output_dir: md/ | |
# build_html: false | |
# - name: chapter2 | |
# uses: baileyjm02/markdown-to-pdf@v1 | |
# with: | |
# input_path: Chapter_02_Workflow | |
# output_dir: md/ | |
# build_html: false | |
# - name: chapter3 | |
# uses: baileyjm02/markdown-to-pdf@v1 | |
# with: | |
# input_path: Chapter_03_Design_and_example_pick | |
# output_dir: md/ | |
# build_html: false | |
# - name: chapter4 | |
# uses: baileyjm02/markdown-to-pdf@v1 | |
# with: | |
# input_path: Chapter_04_Openroad_first_run | |
# output_dir: md/ | |
# build_html: false | |
# - name: chapter5 | |
# uses: baileyjm02/markdown-to-pdf@v1 | |
# with: | |
# input_path: Chapter_05_PDK_Examination | |
# output_dir: md/ | |
# build_html: false | |
# - name: chapter6 | |
# uses: baileyjm02/markdown-to-pdf@v1 | |
# with: | |
# input_path: Chapter_06_Data_in_Openroad | |
# output_dir: md/ | |
# build_html: false | |
# - name: chapter7 | |
# uses: baileyjm02/markdown-to-pdf@v1 | |
# with: | |
# input_path: Chapter_07_LVS_and_DRC | |
# output_dir: md/ | |
# build_html: false | |
# - name: chapter8 | |
# uses: baileyjm02/markdown-to-pdf@v1 | |
# with: | |
# input_path: Chapter_08_Simulation_and_PPA | |
# output_dir: md/ | |
# build_html: false | |
# - name: chapter9 | |
# uses: baileyjm02/markdown-to-pdf@v1 | |
# with: | |
# input_path: Chapter_09_Scripting | |
# output_dir: md/ | |
# build_html: false | |
# - name: chapter10 | |
# uses: baileyjm02/markdown-to-pdf@v1 | |
# with: | |
# input_path: Chapter_10_GDS_and_Tapeout | |
# output_dir: md/ | |
# build_html: false | |
# - name: List files in the repository | |
# run: | | |
# ls ${{ github.workspace }}/md | |
# - name: Combine PDFs | |
# id: course_summary | |
# uses: amoeba/combine-pdf-action@v1 | |
# with: | |
# path: md | |