-
Notifications
You must be signed in to change notification settings - Fork 18
58 lines (50 loc) · 1.62 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: doxygen
on:
push:
branches: [ master ]
workflow_dispatch:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Debug
LOCAL: local
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- name: Get Sources
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v4
- name: Cache Spack packages
uses: actions/cache@v2
id: spack-cache
with:
path: ~/${{ env.LOCAL }}
key: ${{ runner.os }}-${{ hashFiles('ci/**') }}
- name: Install APT Dependencies
run: |
sudo apt update -y
sudo apt install -y libunwind-dev
sudo apt-get install -y autoconf
sudo apt-get install -y automake
sudo apt-get install -y libtool
sudo apt-get install -y libtool-bin
sudo apt-get install -y mpich
sudo apt-get install -y lcov
sudo apt-get install -y zlib1g-dev
sudo apt-get install -y libsdl2-dev
sudo apt-get install -y graphviz
sudo apt-get install -y --no-install-recommends doxygen
- name: Build And Install Dependencies
if: steps.spack-cache.outputs.cache-hit != 'true'
run: ci/install_deps.sh
- name: Build and Test
run: ci/install_docs.sh
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./build/_build/html
destination_dir: html
github_token: ${{ secrets.GITHUB_TOKEN }}