-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
33 lines (33 loc) · 1.19 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: 'Common Lisp Shell Scripting'
description: 'Allows using Lisp code with shebang pointing to Common Lisp implementation.'
inputs:
lisp:
description: |
Path to Common Lisp implementation executable. Supported implementations: SBCL, CCL and ECL.
required: true
lisp-scripting-ref:
required: true
default: f254592b5a4cccd7da8cb5beb4be157817745e28
outputs:
lisps:
description: "Link to executable for use in shebang string"
value: ${{ steps.output.outputs.lisps }}
runs:
using: "composite"
steps:
- run: echo "LISP_SCRIPTING_HOME=${{ github.workspace }}/.borodust/lisp-scripting/${{ inputs.lisp-scripting-ref }}/" >> $GITHUB_ENV
shell: sh
- uses: actions/checkout@v2
with:
repository: borodust/lisp-scripts
ref: ${{ inputs.lisp-scripting-ref }}
path: ${{ env.LISP_SCRIPTING_HOME }}
- run: echo "LISPS=/usr/local/bin/lisps" >> $GITHUB_ENV
shell: sh
- run: ${{ env.LISP_SCRIPTING_HOME }}/lisps/install-lisp-script.sh ${{ inputs.lisp }} "$LISPS"
shell: sh
- run: echo "${{ env.LISP_SCRIPTING_HOME }}/" >> $GITHUB_PATH
shell: sh
- id: output
run: echo "::set-output name=lisps::$LISPS"
shell: sh