-
-
Notifications
You must be signed in to change notification settings - Fork 18
57 lines (57 loc) · 1.89 KB
/
PDFs.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: CI
on:
push:
branches:
- master
schedule:
- cron: '0 0 * * *' # daily
pull_request:
workflow_dispatch:
jobs:
pdf:
name: Julia PDF builds (${{ matrix.buildtype }})
timeout-minutes: 120
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
buildtype:
- 'releases'
- 'nightly'
env:
BUILDROOT: ${{ github.workspace }}/pdf/build
JULIA_SOURCE: ${{ github.workspace }}/pdf/build/julia
JULIA_DOCS: ${{ github.workspace }}/pdf/build/docs.julialang.org
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: 1
show-versioninfo: true
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- run: |
mkdir $BUILDROOT
git clone https://github.com/JuliaLang/julia.git $JULIA_SOURCE
git clone https://github.com/JuliaLang/docs.julialang.org.git -b assets --single-branch $JULIA_DOCS
- run: julia --color=yes pdf/make.jl ${{ matrix.buildtype }}
env:
DOCUMENTER_LATEX_DEBUG: ${{ github.workspace }}/latex-debug-logs
- uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: "LaTeX source and logs (${{ matrix.buildtype }})"
path: ${{ github.workspace }}/latex-debug-logs/
retention-days: 7 # reduced from the default 90, builds run daily anyway
- run: julia --color=yes pdf/make.jl commit
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY_PDF: ${{ secrets.DOCUMENTER_KEY_PDF }}