Skip to content

Setup darklua

Actions

About

Set up your GitHub Actions workflow with a specific version of darklua
v1.1.3
Latest
Star (1)

setup-darklua

A GitHub Action that downloads and installs darklua so it's available on PATH in later workflow steps.

Usage

- uses: jacklebeignet/setup-darklua@v1
  with:
    version: latest
    cache: true

- run: darklua --version

Inputs

Name Description Required Default
version Which darklua version to install. Accepts a tag like v0.19.0 or a bare version like 0.19.0. No latest
cache Whether to cache the downloaded darklua binary between runs. Set to false to disable caching. No true

Outputs

Name Description
version The exact darklua version that was installed.

How it works

  1. Resolves version. If set to latest, it queries the GitHub API for the latest darklua release tag.
  2. Detects the runner's OS and architecture and maps them to darklua's release asset naming (linux, macos, windows / x86_64, aarch64).
  3. Checks the runner's tool cache for a matching install before downloading anything.
  4. On a cache miss, downloads the matching zip from the darklua GitHub releases page and extracts it.
  5. Adds the installed binary's directory to PATH.

Supported combinations are whatever darklua publishes release assets for. As of this writing that's Linux, macOS, and Windows on x86_64, plus Linux and macOS on aarch64.

Development

Install dependencies:

pnpm install

Build:

pnpm run build

License

MIT

Setup darklua is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Set up your GitHub Actions workflow with a specific version of darklua
v1.1.3
Latest

Setup darklua is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.