This action sets up groff (GNU roff).
OS | Supported | Tools |
---|---|---|
Linux | ✅ | None |
macOS | ✅ | brew |
Windows | ❌ | N/A |
- uses: fabasoad/setup-groff-action@v0
with:
# (Optional) If "true" it installs groff even if it is already installed on
# a runner. Otherwise, skips installation. Defaults to "false".
force: "false"
Name | Description | Example |
---|---|---|
installed | Whether groff was installed or not | true |
Let's try to run hello-world.roff file using the workflow below.
name: Setup groff
on: push
jobs:
setup:
name: Setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: fabasoad/setup-groff-action@v0
- run: groff -man -Tascii hello.roff
And you should see the following output:
HELLO(1) General Commands Manual HELLO(1)
NAME
hello - print Hello, World!
SYNOPSIS
hello
DESCRIPTION
The hello command prints "Hello, World!" to the standard output.
EXAMPLES
hello
Hello, World!
Hello Manual June 2024 HELLO(1)