Skip to content

Add slides on auto and literal types as NTTP #711

Add slides on auto and literal types as NTTP

Add slides on auto and literal types as NTTP #711

Workflow file for this run

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