-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
74 lines (62 loc) · 1.97 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: 'Make a Common Lisp Program'
description: >-
Make a Common Lisp program running a specific Common Lisp system
branding:
icon: box
color: blue
inputs:
implementation:
description: |
The Common Lisp implementation to use. This can be one of the
following values:
sbcl
in the future we would like to support all of
abcl clasp clisp ecl gcl sbcl
default: 'sbcl'
system:
description: |
The Common Lisp system to load.
required: true
outputs:
build-pathname:
description: |
The pathname to the produced program.
value: ${{ steps.configure.outputs.build-pathname }}
runs:
using: 'composite'
steps:
- name: 'Configure program preparation'
id: configure
shell: sh
run: |
${GITHUB_ACTION_PATH}/with_lisp_implementation ${{ inputs.implementation }} <<EOF
(ql:quickload '#:org.melusina.github-action.make-common-lisp-program)
(org.melusina.github-action.make-common-lisp-program:configure)
EOF
env:
LISP_SYSTEM: ${{ inputs.system }}
- name: 'Trace the output of configuration'
shell: sh
run: |
cat <<EOF
implementation: ${{ steps.configure.outputs.implementation }}
system: ${{ steps.configure.outputs.system }}
build-pathname: ${{ steps.configure.outputs.build-pathname }}
EOF
- name: 'Trace the output of configuration'
shell: sh
run: |
cat <<EOF
implementation: ${{ steps.configure.outputs.implementation }}
system: ${{ steps.configure.outputs.system }}
EOF
- name: 'Build Common Lisp program'
uses: melusina-org/asdf-operate@v1
with:
implementation: ${{ inputs.implementation }}
system: ${{ steps.configure.outputs.system }}
operation: asdf:program-op
- name: 'Ensure Common Lisp program has been built'
shell: sh
run: |
test -x ${{ steps.configure.outputs.build-pathname }}