-
Notifications
You must be signed in to change notification settings - Fork 34
57 lines (46 loc) · 1.48 KB
/
on-pull-request.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
name: Build Textbook
on:
push:
branches: ["master", "main"]
pull_request:
branches: ["master", "main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run makedist.sh in Docker container
run: |
cd ./ci
./prepare-for-ci.sh
docker compose up -d
docker compose exec -T ibllinearalgebra ./makedist.sh
docker compose down
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: textbook
path: ci/dist/
- name: Verifies all PDFs were built
run: |
cd ./ci
./verify-all-compiled.sh
pretext_conversion:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: "20"
- name: Run prepare-for-pretext-conversion.sh
run: |
cd ./ci
./prepare-for-pretext-conversion.sh
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: textbook-pretext
path: ci/book-pretext/pretext-output