-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (40 loc) · 1.15 KB
/
docs.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
name: Documentation
on:
push:
branches:
- master
- develop
- feature/github-actions
- feature/doc-**
- 'doc/**'
tags: '*'
pull_request:
branches:
- master
- develop
- feature/github-actions
- feature/doc-**
- 'doc/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: '1.7'
- name: Install dependencies
run: |
export JULIA_PROJECT=@.
export JULIA_MPIEXEC=/tmp/mpiexecwrapper
echo -e '#!/bin/bash\nmpiexec --allow-run-as-root $@' > $JULIA_MPIEXEC
chmod +x $JULIA_MPIEXEC
julia -e 'println(ENV)'
julia -e 'using Pkg; Pkg.instantiate(); Pkg.build()'
julia --project=docs/ -e 'using Pkg; Pkg.instantiate()'
julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
julia --project=docs/ -e 'using Rimu'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: julia --project=docs/ docs/make.jl