mirror of
https://github.com/boostorg/histogram.git
synced 2026-01-19 16:22:17 +00:00
Add CI for building docs (#415)
This commit is contained in:
3
.github/workflows/cov.yml
vendored
3
.github/workflows/cov.yml
vendored
@@ -6,6 +6,9 @@ on:
|
||||
- master
|
||||
- develop
|
||||
paths-ignore:
|
||||
- '.github/workflows/doc.yml'
|
||||
- '.github/workflows/fast.yml'
|
||||
- '.github/workflows/slow.yml'
|
||||
- 'doc/**'
|
||||
- 'examples/**'
|
||||
- '*.md'
|
||||
|
||||
65
.github/workflows/doc.yml
vendored
Normal file
65
.github/workflows/doc.yml
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
name: Documentation
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
paths-ignore:
|
||||
- '.github/workflows/cov.yml'
|
||||
- '.github/workflows/fast.yml'
|
||||
- '.github/workflows/slow.yml'
|
||||
- 'tools/**'
|
||||
- '*.md'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
gcc:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
- name: Install docbook dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y docbook-xsl docbook-xml xsltproc doxygen
|
||||
|
||||
- name: Create user-config.jam
|
||||
run: |
|
||||
echo "using xsltproc ;" > $HOME/user-config.jam
|
||||
echo "using boostbook : /usr/share/xml/docbook/stylesheet/nwalsh : /usr/share/xml/docbook/schema/dtd/4.2 ;" >> $HOME/user-config.jam
|
||||
echo "using doxygen : /usr/bin/doxygen ;" >> $HOME/user-config.jam
|
||||
echo "using python : 3.12 : /usr/bin/python3 ; " >> $HOME/user-config.jam
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Fetch Boost superproject
|
||||
run: |
|
||||
cd ..
|
||||
git clone -b $GITHUB_BASE_REF --depth 5 https://github.com/boostorg/boost.git
|
||||
cd boost
|
||||
mv -f $GITHUB_WORKSPACE/* libs/histogram
|
||||
git submodule update --init --depth 5 tools/build tools/boostdep tools/quickbook tools/boostbook
|
||||
python tools/boostdep/depinst/depinst.py --git_args "--depth 5 --jobs 3" histogram
|
||||
python tools/boostdep/depinst/depinst.py --git_args "--depth 5 --jobs 3" ../tools/quickbook
|
||||
mv -f * $GITHUB_WORKSPACE
|
||||
|
||||
- name: Prepare b2
|
||||
run: ./bootstrap.sh
|
||||
|
||||
- name: Build documentation
|
||||
run: |
|
||||
cd libs/histogram
|
||||
../../b2 doc
|
||||
|
||||
- name: Upload documentation
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: histogram-docs
|
||||
path: libs/histogram/doc/html
|
||||
if-no-files-found: error
|
||||
5
.github/workflows/fast.yml
vendored
5
.github/workflows/fast.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: Fast
|
||||
name: Fast tests (cmake)
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
@@ -6,6 +6,9 @@ on:
|
||||
- master
|
||||
- develop
|
||||
paths-ignore:
|
||||
- '.github/workflows/cov.yml'
|
||||
- '.github/workflows/doc.yml'
|
||||
- '.github/workflows/slow.yml'
|
||||
- 'doc/**'
|
||||
- 'examples/**'
|
||||
- 'tools/**'
|
||||
|
||||
6
.github/workflows/slow.yml
vendored
6
.github/workflows/slow.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: Slow
|
||||
name: Slow tests (b2)
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
@@ -6,6 +6,9 @@ on:
|
||||
- master
|
||||
- develop
|
||||
paths-ignore:
|
||||
- '.github/workflows/cov.yml'
|
||||
- '.github/workflows/doc.yml'
|
||||
- '.github/workflows/fast.yml'
|
||||
- 'doc/**'
|
||||
- 'tools/**'
|
||||
- '*.md'
|
||||
@@ -19,7 +22,6 @@ env:
|
||||
UBSAN_OPTIONS: print_stacktrace=1
|
||||
LSAN_OPTIONS: verbosity=1:log_threads=1
|
||||
ASAN_OPTIONS: detect_leaks=1:detect_stack_use_after_return=1
|
||||
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
|
||||
|
||||
jobs:
|
||||
appleclang:
|
||||
|
||||
Reference in New Issue
Block a user