Skip to content

Commit

Permalink
feat: add herbstluftwm (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 authored Jan 8, 2025
1 parent 0ae4529 commit 52bda06
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,29 @@ jobs:
- `qt` (default `false`): set to `true` to install libraries required for Qt
on Linux, e.g.:

```yml
- uses: pyvista/setup-headless-display-action@v3
with:
qt: true
```

- `pyvista` (default `true`): set to `false` if you don't want to set env
vars to use PyVista in offscreen mode.

- `wm` (default `herbstluftwm`): Installs window manager on Linux.
set to `false` if you don't want to install a window manager.

- `mesa3d-release` (default `24.3.0`): set to a specific release to install
that version of Mesa3D. This is only applicable for Windows. For example,
to install Mesa3D 21.2.5:

```yml
- uses: pyvista/setup-headless-display-action@v3
with:
mesa3d-release: 21.2.5
```

You can also use `latest` to use the latest release version.

### 🖼️ PyVista Example
Expand Down
20 changes: 18 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ inputs:
pyvista:
description: "Set PyVista env vars for headless mode"
required: false
default: true
default: "true"
qt:
description: "Install libraries required for Qt on Linux"
required: false
default: false
default: "false"
wm:
description: "Install window manager on Linux"
required: false
default: "herbstluftwm"
mesa3d-release:
description: |
Mesa3D release to install (by default, the latest release is installed).
Expand Down Expand Up @@ -38,6 +42,11 @@ runs:
xvfb \
x11-xserver-utils
- name: Install Linux Window manager
shell: bash
if: runner.os == 'Linux' && inputs.wm == 'herbstluftwm'
run: sudo apt-get install -y herbstluftwm

- name: Install Linux Qt dependencies
if: runner.os == 'Linux' && inputs.qt != 'false'
shell: bash
Expand Down Expand Up @@ -88,6 +97,13 @@ runs:
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
sleep 3
- name: Start window manager on Linux
if: runner.os == 'Linux' && inputs.wm == 'herbstluftwm'
shell: bash
run: |
herbstluftwm &
sleep 3
- name: Configure for PyVista
if: inputs.pyvista != 'false'
shell: bash
Expand Down

0 comments on commit 52bda06

Please sign in to comment.