[Chapter2] Cosmetics. part3 #530
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 PDF on Windows | |
on: | |
push: | |
pull_request: | |
permissions: | |
contents: read | |
# Needed for the 'trilom/file-changes-action' action | |
pull-requests: read | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: [self-hosted, Windows] | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: build PDF | |
shell: powershell | |
working-directory: ${{github.workspace}} | |
run: | | |
function Run-Block-With-Error($block) { | |
$ErrorActionPreference="Stop" | |
Invoke-Command -ScriptBlock $block | |
} | |
Run-Block-With-Error {python.exe export_book.py; pdflatex book.tex; bibtex book; pdflatex book.tex; pdflatex book.tex} | |
mv book.pdf perf-book.pdf | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Performance Analysis and Tuning on Modern CPUs | |
path: perf-book.pdf |