Skip to content

Commit 31eae9f

Browse files
added xvfb to Documentation workflow to allow headless GLMakie doctest to pass
1 parent 8015ec7 commit 31eae9f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/Documentation.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@ jobs:
1515
- uses: julia-actions/setup-julia@latest
1616
with:
1717
version: '1'
18+
- name: Install xvfb and OpenGL libraries
19+
run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev
1820
- name: Install dependencies
1921
run: julia --project=docs/ -e 'ENV["JULIA_PKG_SERVER"] = ""; using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
2022
- name: Build and deploy
2123
env:
2224
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
2325
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
2426
GKSwstype: "100" # https://discourse.julialang.org/t/generation-of-documentation-fails-qt-qpa-xcb-could-not-connect-to-display/60988
25-
run: julia --project=docs/ --code-coverage=user docs/make.jl
27+
run: |
28+
DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=docs/ --code-coverage=user docs/make.jl
2629
- uses: julia-actions/julia-processcoverage@v1
2730
- uses: codecov/codecov-action@v4
2831
with:

0 commit comments

Comments
 (0)