-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
45 lines (44 loc) · 1.22 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
name: build JRuby for testing
inputs:
java-version:
description: 'Java version for building JRuby'
required: false
default: '8'
runs:
using: "composite"
steps:
- name: checkout
uses: actions/checkout@v3
- name: set up java ${{ inputs.java-version }}
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: ${{ inputs.java-version }}
cache: 'maven'
- name: Restore bootstrap build
id: cache-bootstrap-restore
uses: actions/cache/restore@v3
with:
path: |
bin
core
lib
shaded
test
key: ${{ github.sha }}-bootstrap
- name: conditional-bootstrap
if: ${{ steps.cache-bootstrap-restore.outputs.cache-hit == false }}
run: "./mvnw -B -Pbootstrap clean package && bin/jruby --dev -S gem install bundler && bin/jruby --dev -S bundle install"
shell: bash
- name: Save bootstrap build
if: ${{ steps.cache-bootstrap-restore.outputs.cache-hit == false }}
id: cache-bootstrap-save
uses: actions/cache/save@v3
with:
path: |
bin
core
lib
shaded
test
key: ${{ github.sha }}-bootstrap