Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
code

GitHub Action

PicoLisp Action

v2

PicoLisp Action

code

PicoLisp Action

Run 64-bit pil21 PicoLisp code

Installation

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

              

- name: PicoLisp Action

uses: aw/picolisp-action@v2

Learn more about this action in aw/picolisp-action

Choose a version

GitHub Action to run 32-bit or 64-bit PicoLisp code

This action downloads, compiles, and globally installs PicoLisp. It can be used to run PicoLisp code such as units tests.

Example PicoLisp tests

Inputs

version

Optional The version of PicoLisp. Default '20.6'. Accepts 19.12, 19.6, 18.12, 18.6, 17.12, latest, pil21

architecture

Optional The architecture of PicoLisp (32 or 64-bit). Default src64. Accepts src, src64

Example usage

- uses: aw/picolisp-action@v2
  with:
    version: 18.12
    architecture: src64

- name: Print Hello World with the full PicoLisp version number
  run: pil -'prin "Hello World: "' -version -bye

Example workflow

See the picolisp-json workflow for a more detailed usage example.

Code

This action is written in CoffeeScript, see index.coffee

Notes

  • Unknown values will be replaced with the default value (ex: version: 1.2.3, will become version: 19.12)
  • The PicoLisp environment is extracted to /tmp/picoLisp
  • 32-bit PicoLisp is always compiled
  • 64-bit PicoLisp is bootstrapped from the 32-bit PicoLisp
  • 64-bit PicoLisp will not be compiled if the architecture value is src
  • pil21 technically only works on 64-bit architectures

Build

To build this action:

  • Install NodeJS v12
  • Install the dev dependencies with npm install
  • Generate the dist/index.js with npm run build

ChangeLog

  • [August 28, 2020] v2.2.0
    • Add support for building and testing with PicoLisp 21: pil21
  • [July 27, 2020] v2.1.0
    • Force curl to use http1.1 when fetching the PicoLisp source code.
    • Update default PicoLisp version to 20.6

License

MIT License

Copyright (c) 2019-2020 Alexander Williams, Unscramble license@unscramble.jp