Skip to content

Commit eb32335

Browse files
authored
Switch to GitHub Actions (#21)
1 parent 3395590 commit eb32335

File tree

2 files changed

+47
-20
lines changed

2 files changed

+47
-20
lines changed

.github/workflows/PDFs.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
schedule:
7+
- cron: '0 0 * * *' # daily
8+
pull_request:
9+
jobs:
10+
pdf:
11+
name: Julia PDF builds (${{ matrix.buildtype }})
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
buildtype:
17+
- 'releases'
18+
- 'nightly'
19+
env:
20+
BUILDROOT: ${{ github.workspace }}/pdf/build
21+
JULIA_SOURCE: ${{ github.workspace }}/pdf/build/julia
22+
JULIA_DOCS: ${{ github.workspace }}/pdf/build/docs.julialang.org
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: julia-actions/setup-julia@v1
26+
with:
27+
version: 1
28+
show-versioninfo: true
29+
- uses: actions/cache@v1
30+
env:
31+
cache-name: cache-artifacts
32+
with:
33+
path: ~/.julia/artifacts
34+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
35+
restore-keys: |
36+
${{ runner.os }}-test-${{ env.cache-name }}-
37+
${{ runner.os }}-test-
38+
${{ runner.os }}-
39+
- run: |
40+
mkdir $BUILDROOT
41+
git clone https://github.com/JuliaLang/julia.git $JULIA_SOURCE
42+
git clone https://github.com/JuliaLang/docs.julialang.org.git -b assets --single-branch $JULIA_DOCS
43+
- run: julia --color=yes pdf/make.jl ${{ matrix.buildtype }}
44+
- run: julia --color=yes pdf/make.jl commit
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.travis.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)