-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
53 lines (52 loc) · 1.69 KB
/
action.yml
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
name: "Setup Jolie environment"
description: "Set up a Jolie environment and add the command tools to the PATH"
author: "The Jolie Team"
branding:
icon: "at-sign"
color: "gray-dark"
inputs:
version:
description: "The Jolie version tag to set up. See Jolie's GitHub releases for available versions."
default: "1.12.0"
java-version:
description: "The Java version to set up"
default: "21"
node-version:
description: "The node version to set up"
default: "20"
runs:
using: "composite"
steps:
- name: Set up Node (required by Jolie Package Manager)
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: ${{ inputs.java-version }}
distribution: "temurin"
- name: Download Jolie Release
id: download-release
uses: robinraju/release-downloader@v1
with:
repository: "jolie/jolie"
tag: "v${{ inputs.version }}"
fileName: "*.jar"
out-file-path: "jolie-installer.jar"
- name: Install Jolie
shell: bash
run: |
java -jar ${{ fromJson(steps.download-release.outputs.downloaded_files)[0] }} -jh ${{ github.action_path }}/jolie/dist -jl ${{ github.action_path }}/jolie/launchers
- name: "Set up JOLIE_HOME environment"
shell: bash
run: |
echo "JOLIE_HOME=${{ github.action_path }}/jolie/dist" >> "$GITHUB_ENV"
- name: Set up PATH environment
shell: bash
run: |
echo "${{ github.action_path }}/jolie/launchers" >> $GITHUB_PATH
- name: Install JPM (Jolie Package Manager)
shell: bash
run: |
npm install -g @jolie/jpm