-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
63 lines (63 loc) · 2.14 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
name: 'Alien-Works Delivery'
description: 'Framework for bundling Common Lisp software'
inputs:
bundle-def-system:
description: |
ASDF system with delivery bundle definition
required: true
bundle-name:
description: |
Name of the bundle to deliver
required: true
bundle-type:
description: |
Type of bundle to deliver:
* appimage
required: true
lisp:
description: |
Implementation to build application bundle with:
* sbcl - official package provided by SBCL developers
* sbcl_ros - SBCL package provided by roswell maintainers
required: true
default: sbcl
bundle-file:
description: |
Output file name for a resulting bundle.
required: false
outputs:
bundle:
description: "Path to Common Lisp application bundle"
value: ${{ steps.output.outputs.bundle }}
runs:
using: "composite"
steps:
- id: install-lisp
name: Install Lisp
uses: boroactions/lisp@v0
with:
lisp: ${{ inputs.lisp }}
- id: install-lisp-scripting
name: Install Lisp Scripting
uses: boroactions/lisp-scripting@v0
with:
lisp: ${{ steps.install-lisp.outputs.lisp }}
- name: Inject Action Bin Directory To Env
run: echo "AWD_ACTION_BINDIR=${{ github.workspace }}/.boroactions/alien-works-delivery/v0/bin/" >> $GITHUB_ENV
shell: sh
- name: Inject Action Bin Directory To Path
run: echo "${{ env.AWD_ACTION_BINDIR }}" >> $GITHUB_PATH
shell: sh
- name: Preapre Build Environment
run: ${{ github.action_path }}/prepare.sh
shell: sh
- name: Set Bundle File Name
run: AWD_BUNDLE_FILE="${{ inputs.bundle-file }}" && if [ -z "$AWD_BUNDLE_FILE" ]; then AWD_BUNDLE_FILE="$RUNNER_TEMP/${{ inputs.bundle-name }}"; fi && echo "AWD_BUNDLE_FILE=$AWD_BUNDLE_FILE" >> $GITHUB_ENV
shell: sh
- name: Run Alien-Works-Delivery System
run: ${{ github.action_path }}/deliver.sh ${{ inputs.bundle-def-system }} ${{ inputs.bundle-name }} ${{ inputs.bundle-type }}
shell: sh
- id: output
name: Set Action Outputs
run: echo "::set-output name=bundle::$AWD_BUNDLE_FILE"
shell: sh