From 709a681deb9532a665c43d553fb6a644a2e2eb1f Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Wed, 8 Jan 2025 11:27:41 -0500 Subject: [PATCH] add option --- README.md | 8 ++++++++ action.yml | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 31175d3..07f6488 100644 --- a/README.md +++ b/README.md @@ -35,22 +35,30 @@ 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. +- `window_manager` (default `true`): set to `false` if you don't want to + install a window manager (currently herbstluftwm) on Linux. + This is only applicable for Linux. + - `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 diff --git a/action.yml b/action.yml index 694e2cc..23ec18d 100644 --- a/action.yml +++ b/action.yml @@ -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" + window_manager: + description: "Install herbstluftwm window manager on Linux" + required: false + default: "true" mesa3d-release: description: | Mesa3D release to install (by default, the latest release is installed). @@ -90,7 +94,7 @@ runs: sleep 3 - name: Start window manager on Linux - if: runner.os == 'Linux' + if: runner.os == 'Linux' && inputs.window_manager != 'false' shell: bash run: | herbstluftwm &