You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Alex Williams 282303b7b6
Update dependencies version
2 months ago
dist Add support for building with 'opt' 4 months ago
.gitignore Add initial code 1 year ago
LICENSE Update default PicoLisp to v19.12, bump Action to version 'v2' 1 year ago
README.md Fix typo in README for 'pil21' support 4 months ago
action.yml Add build target version for 'pil21' 4 months ago
index.coffee Add support for building with 'opt' 4 months ago
package-lock.json Update dependencies version 2 months ago
package.json Update dependencies version 2 months ago

README.md

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