You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# # Start Xvfb explicitly instead of using xvfb-run
34
+
# # This gives us more control and visibility into the virtual display setup
35
+
# - name: Setup virtual framebuffer
36
+
# run: |
37
+
# # Start Xvfb and wait for it to be ready
38
+
# /usr/bin/Xvfb :99 -screen 0 1024x768x24
39
+
# echo "DISPLAY=:99" >> $GITHUB_ENV
30
40
31
41
- name: Install Julia
32
42
uses: julia-actions/setup-julia@latest
@@ -38,22 +48,22 @@ jobs:
38
48
with:
39
49
cache-name: docs-cache
40
50
41
-
# Install Julia package dependencies for the documentation project
51
+
# Install dependencies with the virtual display already running
42
52
- name: Install dependencies
43
-
run: >
44
-
DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=docs/ -e 'ENV["JULIA_PKG_SERVER"] = ""; using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
53
+
run: |
54
+
julia --project=docs/ -e '
55
+
ENV["JULIA_PKG_SERVER"] = "";
56
+
using Pkg;
57
+
Pkg.develop(PackageSpec(path=pwd()));
58
+
Pkg.instantiate()'
45
59
46
-
# Build and deploy the documentation using xvfb to simulate a display for GLMakie
47
-
# xvfb-run: Runs Julia with a virtual display to support OpenGL rendering
48
-
# --server-args: Configures the virtual display resolution and color depth
60
+
# Build documentation with the stable virtual display
49
61
- name: Build and deploy
50
62
env:
51
-
GKSwstype: "100"# Specifies the workstation type for GR framework rendering, https://discourse.julialang.org/t/generation-of-documentation-fails-qt-qpa-xcb-could-not-connect-to-display/60988/7
52
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Required for permissions to deploy documentation
53
-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
54
-
run: >
55
-
DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24'
56
-
julia --project=docs --color=yes --code-coverage=user docs/make.jl
63
+
GKSwstype: "100"
64
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65
+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
66
+
run: xvfb-run julia --project=docs --color=yes --code-coverage=user docs/make.jl
0 commit comments