Skip to content
terminal

GitHub Action

Setup Prolog

v1.0.0 Latest version

Setup Prolog

terminal

Setup Prolog

This action sets up Prolog programming language

Installation

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

              

- name: Setup Prolog

uses: fabasoad/setup-prolog-action@v1.0.0

Learn more about this action in fabasoad/setup-prolog-action

Choose a version

Setup Prolog

Stand With Ukraine GitHub release functional-tests-local functional-tests-remote security linting

This action sets up a swipl (Prolog programming language).

Supported OS

OS
Windows
Linux
macOS

Inputs

- uses: fabasoad/setup-prolog-action@v1
  with:
    # (Optional) If "true" it installs swipl even if it is already installed on
    # a runner. Otherwise, skips installation. Defaults to false.
    force: "false"

Outputs

None.

Example usage

  1. Create hello-world.pl with the following content:

    main :- write('Hello World!'), nl.
    
  2. Create and run the following workflow:

    name: Setup Prolog
    
    on: push
    
    jobs:
      setup:
        name: Setup
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v4
          - uses: fabasoad/setup-prolog-action@v1
          - name: Run script
            run: swipl -s hello-world.pl -g main -t halt
  3. See the result:

    Run swipl -s hello-world.pl -g main -t halt
    Hello World!