-
Notifications
You must be signed in to change notification settings - Fork 23
36 lines (31 loc) · 946 Bytes
/
docs.yaml
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
name: Docs
on:
push:
paths:
- 'doc/**'
- '.github/workflows/docs.yaml'
branches: [ main ]
pull_request:
paths:
- 'doc/**'
- '.github/workflows/docs.yaml'
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
name: Build Ubuntu
steps:
- uses: actions/checkout@v2
- name: Install GCC, CMake
run: |
# https://github.com/actions/runner-images/issues/7192
echo 'APT::Get::Always-Include-Phased-Updates "false";' | sudo tee /etc/apt/apt.conf.d/99-phased-updates
sudo apt-get update && sudo apt-get -y upgrade --fix-missing
sudo apt-get install build-essential cmake texlive texlive-latex-extra
- name: Configure & Build CMake
uses: lukka/run-cmake@v3
with:
buildDirectory: build
cmakeAppendedArgs: -DBUILD_DOC=ON
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
buildWithCMakeArgs: --target doc