Skip to content

Latest commit

 

History

History
68 lines (51 loc) · 1.87 KB

README.md

File metadata and controls

68 lines (51 loc) · 1.87 KB

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!