-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 888 Bytes
/
examples.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
name: examples
on: [push, pull_request]
jobs:
minimal-example:
strategy:
fail-fast: false
runs-on: ubuntu-latest
container: ghcr.io/langchr86/docmake:latest
steps:
- uses: actions/checkout@v2
- name: configure and build
run: |
mkdir build
cmake -S . -B build -DDOCMAKE_ENABLE_MINIMAL_EXAMPLE=ON
cmake --build build
maximal-example:
strategy:
fail-fast: false
runs-on: ubuntu-latest
container: ghcr.io/langchr86/docmake:latest
env:
DISPLAY: ":99"
steps:
- uses: actions/checkout@v2
- name: "start xvfb as a workaround for drawio-desktop does not work without an X server"
run: Xvfb :99 &
- name: configure and build
run: |
mkdir build
cmake -S . -B build -DDOCMAKE_ENABLE_MAXIMAL_EXAMPLE=ON
cmake --build build