-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (64 loc) · 2.17 KB
/
gh-pages.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: Build and deploy documentation
on:
push:
branches: [master]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
name: Build documentation
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y doxygen python3-sphinx python3-breathe python3-sphinx-rtd-theme
- name: Checkout CBLAS/LAPACKE
uses: actions/[email protected]
with:
repository: Reference-LAPACK/lapack
ref: v3.12.0
path: ${{ github.workspace }}/lapack
- name: Configure CBLAS/LAPACKE
run: |
cmake -B ${{ github.workspace }}/lapack/build -DBUILD_TESTING=Off -DBUILD_SINGLE=Off -DBUILD_COMPLEX=Off -DBUILD_COMPLEX16=Off -DLAPACKE_BUILD_SINGLE=Off -DLAPACKE_BUILD_COMPLEX=Off -DLAPACKE_BUILD_COMPLEX16=Off -DCBLAS=On -DLAPACKE=On -DBUILD_SHARED_LIBS=On -DCMAKE_INSTALL_PREFIX=/usr ${{ github.workspace }}/lapack
- name: Build CBLAS/LAPACKE
run: cmake --build ${{ github.workspace }}/lapack/build
- name: Install CBLAS/LAPACKE
run: |
cd ${{ github.workspace }}/lapack/build
sudo make install
- name: Checkout hddc2b
uses: actions/[email protected]
with:
path: hddc2b
- name: Configure hddc2b
run: |
cmake -B ${{ github.workspace }}/hddc2b/build -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_DOC=On ${{ github.workspace }}/hddc2b
- name: Build hddc2b
run: |
cmake --build ${{ github.workspace }}/hddc2b/build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifacts
uses: actions/upload-pages-artifact@v3
with:
path: ${{ github.workspace }}/hddc2b/build/hddc2b_sphinx
retention-days: 1
deploy:
name: Deploy documentation
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4