-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (72 loc) · 2.28 KB
/
gradle.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Native Distributions
on:
# push:
# branches: [ develop, main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: JDK Ubuntu
uses: actions/setup-java@v2
with:
java-package: jdk+fx
java-version: '17'
distribution: 'zulu'
- name: Gradle Ubuntu
uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7
with:
arguments: -PcomposeBuildOs=ubuntu packageDeb
- name: Upload DEB
uses: actions/upload-artifact@v2.3.1
with:
name: ubuntu
path: build/compose/binaries/main/deb
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: JDK Windows
uses: actions/setup-java@v2
with:
java-package: jdk+fx
java-version: '17'
distribution: 'zulu'
- name: Gradle Windows
uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7
with:
arguments: -PcomposeBuildOs=windows packageExe
- name: Upload EXE
uses: actions/upload-artifact@v2.3.1
with:
name: windows
path: build/compose/binaries/main/exe
build-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: JDK macOS
uses: actions/setup-java@v2
with:
java-package: jdk+fx
java-version: '17'
distribution: 'zulu'
- name: Gradle Mac
uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7
with:
arguments: -PcomposeBuildOs=mac packageDmg
- name: Upload DMG
uses: actions/upload-artifact@v2.3.1
with:
name: macos-intel
path: build/compose/binaries/main/dmg