-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yaml
More file actions
44 lines (39 loc) · 1.22 KB
/
action.yaml
File metadata and controls
44 lines (39 loc) · 1.22 KB
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
---
name: 'Download ArkScript release and configure'
inputs:
version:
description: 'ArkScript version to install'
default: 'latest'
os:
description: 'Operating system ArkScript will be running on'
default: 'linux'
stdlib_update:
description: 'If the ArkScript stdlib needs to be updated to the latest version'
default: 'no'
runs:
using: 'composite'
steps:
- name: Set GitHub Path
run: |
echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH
echo "$PWD/.arkscript" >> $GITHUB_PATH
echo "ARKSCRIPT_PATH=$PWD/.arkscript/lib" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=$PWD/.arkscript" >> $GITHUB_ENV
echo "DYLD_LIBRARY_PATH=$PWD/.arkscript" >> $GITHUB_ENV
shell: bash
env:
GITHUB_ACTION_PATH: ${{ github.action_path }}
- name: Download ArkScript release
shell: sh
run: download.sh "${{ inputs.version }}" "${{ inputs.os }}"
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Download latest ArkScript stdlib
if: ${{ inputs.stdlib_update }} != 'no'
shell: bash
run: download-stdlib.sh
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Test install
shell: bash
run: arkscript --version