GitHub Action
Setup Prolog
v1.0.0
Latest version
This action sets up a swipl (Prolog programming language).
OS | |
---|---|
Windows | ❌ |
Linux | ✅ |
macOS | ✅ |
- 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"
None.
-
Create
hello-world.pl
with the following content:main :- write('Hello World!'), nl.
-
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
-
See the result:
Run swipl -s hello-world.pl -g main -t halt Hello World!