-
Notifications
You must be signed in to change notification settings - Fork 221
51 lines (45 loc) · 1.36 KB
/
bundles-kit.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
name: Scene Builder Kit
on:
workflow_call:
inputs:
project-version:
required: true
type: string
java-release:
default: '23'
required: false
type: string
java-version:
default: '23.0.1'
required: false
type: string
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Setup Java
uses: oracle-actions/[email protected]
with:
website: jdk.java.net
release: ${{ inputs.java-release }}
version: ${{ inputs.java-version }}
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Create Kit Jar
run: |
export DISPLAY=:90
Xvfb -ac :90 -screen 0 1280x1024x24 > /dev/null 2>&1 &
mvn -B -ntp -q versions:set -DnewVersion=${{ env.PROJECT_VERSION }} -DgenerateBackupPoms=false
mvn -B -ntp clean package -Dmaven.test.skip=true -f kit -ntp -B
env:
PROJECT_VERSION: ${{ inputs.project-version }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: scenebuilder-kit-${{ inputs.project-version }}.jar
path: kit/target/lib/*.jar