Skip to content
box

GitHub Action

Setup Jakt Environment

v1 Latest version

Setup Jakt Environment

box

Setup Jakt Environment

Setup a Jakt environment and add the compiler to the PATH

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup Jakt Environment

uses: SerenityOS/setup-jakt@v1

Learn more about this action in SerenityOS/setup-jakt

Choose a version

setup-jakt

This action sets up a Jakt environment for use in actions.

V1

  • Adds the Jakt binary path to PATH, so the compiler is available as both $JAKT_COMPILER and jakt
  • Registers the path to the Jakt runtime as $JAKT_RUNTIME, this is necessary for compilation (pass as -R $JAKT_RUNTIME)
  • Installs Jakt's CMake module and adds it to CMAKE_PREFIX_PATH

The action will attempt to pull and build the latest available revision of Jakt from SerenityOS/jakt, but also accepts an optional revision (commit hash or "main") to install instead.

The produced Jakt installation can be cached for future reuse by passing in cache: true (see example usage).

Example Usage

Downloading and installing the latest available commit, without caching the built compiler binary:

steps:
  - uses: SerenityOS/setup-jakt@v1
  - run: jakt -h

Downloading and installing a specific commit, caching the built compiler binary:

steps:
  - uses: SerenityOS/setup-jakt@v1
    with:
      cache: true
      revision: afcffe
  - run: jakt -h