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.
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 issrc
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
withnpm run build
ChangeLog
- [August 28, 2020]
v2.2.0
- Add support for building and testing with PicoLisp 21:
pil21
- Add support for building and testing with PicoLisp 21:
- [July 27, 2020]
v2.1.0
- Force
curl
to usehttp1.1
when fetching the PicoLisp source code. - Update default PicoLisp version to 20.6
- Force
License
Copyright (c) 2019-2020 Alexander Williams, Unscramble license@unscramble.jp