Skip to content

Commit

Permalink
ci: test for docs examples
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Sep 14, 2023
1 parent 97c59df commit ac09161
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/test-docs-examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Test compile documentation examples
on:
push:
branches:
- 'dev'
files:
- '**Doxyfile'
- '**docpages/example_code/**'
pull_request:
files:
- '**Doxyfile'
- '**docpages/example_code/**'
workflow_dispatch:

jobs:
docs:
name: Test build examples
runs-on: ubuntu-22.04

steps:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1
with:
egress-policy: audit

- name: Checkout D++
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
submodules: recursive

- name: Install apt packages
run: sudo sed -i 's/azure\.//' /etc/apt/sources.list && sudo apt-get update && sudo apt-get install g++-12 libsodium-dev libopus-dev zlib1g-dev libmpg123-dev liboggz-dev

- name: Generate CMake
run: mkdir build && cd build && cmake -DDPP_NO_VCPKG=ON -DAVX_TYPE=T_fallback -DDPP_CORO=ON -DCMAKE_BUILD_TYPE=Debug ..
env:
CXX: g++-12

- name: Build Project
run: cd build && make -j2 && sudo make install

- name: Test compile examples
run: cd docpages/example_code && mkdir build && cd build && cmake .. && make -j2
env:
CXX: g++-12

0 comments on commit ac09161

Please sign in to comment.