Skip to content

Commit 0c4bac5

Browse files
Create gradle.yml
1 parent 7e21759 commit 0c4bac5

1 file changed

Lines changed: 64 additions & 0 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Gradle Build
2+
3+
# on: [push, pull_request]
4+
on:
5+
# Trigger the workflow on push or pull request,
6+
# but only for the non-modular branch
7+
push:
8+
branches:
9+
- non-modular
10+
pull_request:
11+
branches:
12+
- non-modular
13+
14+
jobs:
15+
build:
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
matrix:
19+
os: [ubuntu-latest, macOS-latest, windows-latest]
20+
java: [ '15.0.1' ]
21+
fail-fast: false
22+
name: ${{ matrix.os }}
23+
steps:
24+
- name: Git checkout
25+
uses: actions/checkout@v2
26+
- name: Set up JDK
27+
uses: actions/setup-java@v1
28+
with:
29+
java-version: ${{ matrix.java }}
30+
- name: Echo JAVA_HOME
31+
run: echo $JAVA_HOME
32+
- name: Verify Gradle Wrapper
33+
uses: gradle/wrapper-validation-action@v1
34+
- name: Execute build
35+
run: ./gradlew --info --stacktrace build
36+
- name: Execute runtime
37+
run: ./gradlew --info --stacktrace runtime
38+
- name: Execute jpackage
39+
run: ./gradlew --info --stacktrace jpackage
40+
- name: Upload DMG as an artifact
41+
uses: actions/upload-artifact@v2
42+
with:
43+
name: hellofx-jdk${{ matrix.java }}-${{ matrix.os }}-dmg
44+
path: build/jpackage/*.dmg
45+
- name: Upload EXE as an artifact
46+
uses: actions/upload-artifact@v2
47+
with:
48+
name: hellofx-jdk${{ matrix.java }}-${{ matrix.os }}-exe
49+
path: build/jpackage/*.exe
50+
- name: Upload MSI as an artifact
51+
uses: actions/upload-artifact@v2
52+
with:
53+
name: hellofx-jdk${{ matrix.java }}-${{ matrix.os }}-msi
54+
path: build/jpackage/*.msi
55+
- name: Upload DEB as an artifact
56+
uses: actions/upload-artifact@v2
57+
with:
58+
name: hellofx-jdk${{ matrix.java }}-${{ matrix.os }}-deb
59+
path: build/jpackage/*.deb
60+
- name: Upload RPM as an artifact
61+
uses: actions/upload-artifact@v2
62+
with:
63+
name: hellofx-jdk${{ matrix.java }}-${{ matrix.os }}-rpm
64+
path: build/jpackage/*.rpm

0 commit comments

Comments
 (0)