-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
58 lines (53 loc) · 1.66 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
name: 'Setup Common Lisp'
description: >-
Setup Common Lisp on a GitHub Runner.
branding:
icon: box
color: blue
inputs:
implementation:
description: |
The Common Lisp implementation to setup. This can be one of the
following values:
abcl ecl sbcl
in the future we would like to support all of
abcl clasp clisp ecl gcl sbcl
default: 'sbcl'
outputs:
lisp-implementation-type:
value: ${{ steps.describe-lisp.outputs.lisp-implementation-type }}
description: >-
The implementation type for Common Lisp.
lisp-implementation-version:
value: ${{ steps.describe-lisp.outputs.lisp-implementation-version }}
description: >-
The implementation version for Common Lisp.
lisp-implementation-init-filename:
value: ${{ steps.describe-lisp.outputs.lisp-implementation-init-filename }}
description: >-
The user initialisation file associated to the GitHub runner
user for the selected implementation.
runs:
using: 'composite'
steps:
- name: 'Update APT package lists'
if: runner.os == 'Linux'
shell: sh
run: >-
sudo apt update
- name: 'Install Common Lisp'
if: runner.os == 'Linux'
shell: sh
run: >-
sudo apt install ${{ inputs.implementation }} cl-asdf
- name: 'Install Common Lisp'
if: runner.os == 'macOS'
shell: sh
run: >-
sudo port install ${{ inputs.implementation }}
- name: 'Describe Common Lisp'
id: describe-lisp
shell: sh
run: >-
${{ github.action_path }}/with_lisp_implementation ${{ inputs.implementation }}
${{ github.action_path }}/describe-lisp.lisp