Add slides on auto and literal types as NTTP #711
Workflow file for this run
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
name: Build LaTeX slides | |
on: | |
push: | |
paths: | |
- 'talk/**' | |
pull_request: | |
paths: | |
- 'talk/**' | |
- '.github/workflows/**' | |
# Cancel running jobs on force-push | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build_latex: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: [ essentials, full ] | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v3 | |
- name: Set up essentials course | |
if: matrix.version == 'essentials' | |
run: echo '\basictrue' > talk/onlybasics.tex | |
- name: Compile LaTeX document | |
uses: xu-cheng/latex-action@v2 | |
with: | |
root_file: C++Course.tex | |
latexmk_shell_escape: true | |
args: -pdf -interaction=nonstopmode -halt-on-error | |
working_directory: talk | |
extra_system_packages: "py-pygments" | |
- name: Upload PDF as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: PDF_${{matrix.version}} | |
path: | | |
talk/C++Course.pdf |