-
Notifications
You must be signed in to change notification settings - Fork 9
78 lines (75 loc) · 2.1 KB
/
compile-all-on-push.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Compile all
on: push
jobs:
compile:
name: Compile
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
week: [
"w00_init",
"w01_big_picture",
"w02_basics",
"w03_policy_evaluation",
"w04_model_free_control",
"w05_function_approx",
"w06_deep_rl",
"w07_policy_search",
"w08_exploration",
"w09_meta_rl_new",
"w10_autoRL",
"w11_wrap_up"
]
mode: [
"animation",
"handout",
]
steps:
- uses: actions/checkout@v3
- name: compile week ${{ matrix.week }} with xelatex
uses: ./.github/actions/xelatex-week
with:
folder: ${{ matrix.week }}
mode: ${{ matrix.mode }}
- uses: actions/upload-artifact@v3
with:
name: Slides ${{ matrix.week }} (${{ matrix.mode }})
path: ${{ matrix.week }}/${{ matrix.mode }}/*.pdf
merge:
name: Merge slides
needs: compile
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
week: [
"w01_big_picture",
"w02_basics",
"w03_policy_evaluation",
"w04_model_free_control",
"w05_function_approx",
"w06_deep_rl",
"w07_policy_search",
"w08_exploration",
"w09_meta_rl_new",
"w10_autoRL",
"w11_wrap_up"
]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: Slides ${{ matrix.week }} (handout)
path: ${{ matrix.week }}/
- name: Prepare output folder
run: sh -c "[[ -d slides ]] || mkdir slides"
- name: Merge slides for week ${{ matrix.week }} with pdftk
uses: ./.github/actions/merge-pdftk
with:
input-pattern: ${{ matrix.week }}/t*.pdf
output-name: slides/${{ matrix.week }}.pdf
- uses: actions/upload-artifact@v2
with:
name: Merged slides
path: slides/*.pdf