-
Notifications
You must be signed in to change notification settings - Fork 3
69 lines (55 loc) · 1.54 KB
/
documentation-ci.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
59
60
61
62
63
64
65
66
67
68
69
name: Documentation CI
on:
pull_request:
branches: [ "master" ]
permissions:
contents: read
id-token: write
jobs:
linux:
runs-on: ubuntu-latest
timeout-minutes: 180
env:
MPIEXEC_FLAGS: "--allow-run-as-root --oversubscribe"
PYNUCLEUS_BUILD_PARALLELISM: 2
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Pull ccache cache
id: ccache-restore
uses: actions/cache/restore@v4
with:
path: /home/runner/.cache/ccache
key: ccache
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Ubuntu packages
run: |
sudo apt-get update
sudo apt-get install mpi-default-bin mpi-default-dev libmetis-dev libparmetis-dev libsuitesparse-dev ccache
- name: Install Python dependencies
run: make prereq && make prereq-extra && python -m pip install wheel
- name: Install
run: make dev
- name: Remove ccache cache
if: ${{ steps.ccache-restore.outputs.cache-hit }}
shell: bash
env:
GH_TOKEN: ${{ github.token }}
run: |
gh extension install actions/gh-actions-cache
gh actions-cache delete ccache --confirm
continue-on-error: true
- name: Push ccache cache
uses: actions/cache/save@v4
with:
path: /home/runner/.cache/ccache
key: ccache
- name: Build documentation
run: |
make docs
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: 'docs/build'