File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -35,22 +35,29 @@ jobs:
35
35
36
36
- ` qt` (default `false`): set to `true` to install libraries required for Qt
37
37
on Linux, e.g. :
38
+
38
39
` ` ` yml
39
40
- uses: pyvista/setup-headless-display-action@v3
40
41
with:
41
42
qt: true
42
43
` ` `
44
+
43
45
- `pyvista` (default `true`) : set to `false` if you don't want to set env
44
46
vars to use PyVista in offscreen mode.
45
47
48
+ - `wm` (default `herbstluftwm`) : Installs window manager on Linux.
49
+ set to `false` if you don't want to install a window manager.
50
+
46
51
- `mesa3d-release` (default `24.3.0`) : set to a specific release to install
47
52
that version of Mesa3D. This is only applicable for Windows. For example,
48
53
to install Mesa3D 21.2.5 :
54
+
49
55
` ` ` yml
50
56
- uses: pyvista/setup-headless-display-action@v3
51
57
with:
52
58
mesa3d-release: 21.2.5
53
59
` ` `
60
+
54
61
You can also use `latest` to use the latest release version.
55
62
56
63
# ## 🖼️ PyVista Example
Original file line number Diff line number Diff line change @@ -5,11 +5,15 @@ inputs:
5
5
pyvista :
6
6
description : " Set PyVista env vars for headless mode"
7
7
required : false
8
- default : true
8
+ default : " true"
9
9
qt :
10
10
description : " Install libraries required for Qt on Linux"
11
11
required : false
12
- default : false
12
+ default : " false"
13
+ wm :
14
+ description : " Install window manager on Linux"
15
+ required : false
16
+ default : " herbstluftwm"
13
17
mesa3d-release :
14
18
description : |
15
19
Mesa3D release to install (by default, the latest release is installed).
38
42
xvfb \
39
43
x11-xserver-utils
40
44
45
+ - name : Install Linux Window manager
46
+ shell : bash
47
+ if : runner.os == 'Linux' && inputs.wm == 'herbstluftwm'
48
+ run : sudo apt-get install -y herbstluftwm
49
+
41
50
- name : Install Linux Qt dependencies
42
51
if : runner.os == 'Linux' && inputs.qt != 'false'
43
52
shell : bash
88
97
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
89
98
sleep 3
90
99
100
+ - name : Start window manager on Linux
101
+ if : runner.os == 'Linux' && inputs.wm == 'herbstluftwm'
102
+ shell : bash
103
+ run : |
104
+ herbstluftwm &
105
+ sleep 3
106
+
91
107
- name : Configure for PyVista
92
108
if : inputs.pyvista != 'false'
93
109
shell : bash
You can’t perform that action at this time.
0 commit comments