-
-
Notifications
You must be signed in to change notification settings - Fork 157
39 lines (32 loc) · 947 Bytes
/
build_pdf.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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