Skip to content

Commit 2a3da1e

Browse files
committed
Adding CI to GitHub Actions.
1 parent 6462830 commit 2a3da1e

File tree

3 files changed

+74
-26
lines changed

3 files changed

+74
-26
lines changed

.github/workflows/Build.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags: '*'
8+
pull_request:
9+
10+
jobs:
11+
test:
12+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
version:
18+
- '1.0'
19+
- '1' # automatically expands to the latest stable 1.x release of Julia
20+
- nightly
21+
os:
22+
- ubuntu-latest
23+
arch:
24+
- x64
25+
- x86
26+
include:
27+
# test macOS and Windows with latest Julia only
28+
- os: macOS-latest
29+
arch: x64
30+
version: 1
31+
- os: windows-latest
32+
arch: x64
33+
version: 1
34+
- os: windows-latest
35+
arch: x86
36+
version: 1
37+
steps:
38+
- uses: actions/checkout@v2
39+
- uses: julia-actions/setup-julia@v1
40+
with:
41+
version: ${{ matrix.version }}
42+
arch: ${{ matrix.arch }}
43+
- uses: actions/cache@v1
44+
env:
45+
cache-name: cache-artifacts
46+
with:
47+
path: ~/.julia/artifacts
48+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
49+
restore-keys: |
50+
${{ runner.os }}-test-${{ env.cache-name }}-
51+
${{ runner.os }}-test-
52+
${{ runner.os }}-
53+
- uses: julia-actions/julia-buildpkg@v1
54+
- uses: julia-actions/julia-runtest@v1
55+
- uses: julia-actions/julia-processcoverage@v1
56+
- uses: codecov/codecov-action@v1
57+
with:
58+
file: lcov.info
59+
docs:
60+
runs-on: ubuntu-latest
61+
steps:
62+
- uses: actions/checkout@v2
63+
- uses: julia-actions/setup-julia@latest
64+
with:
65+
version: '1'
66+
- name: Install dependencies
67+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
68+
- name: Build and deploy
69+
env:
70+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
71+
DOCUMENTER_KEY: ${{secrets.DOCUMENTER_KEY}}
72+
run: julia --project=docs/ docs/make.jl

.github/workflows/Documentation.yml

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

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ Zlib_jll = "83775a58-1f1d-513f-b197-d71354ab007a"
2222
[compat]
2323
AbstractTrees = "0.3"
2424
AdobeGlyphList = "0.1.1"
25-
BinDeps = "0.8.10"
25+
BinDeps = "1.0"
2626
LabelNumerals = "0.1.0"
27-
Rectangle = "0.1.1"
27+
Rectangle = "0.1.2"
2828
RomanNumerals = "0.3.1"
2929
julia = "1.0"
3030

0 commit comments

Comments
 (0)