-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (45 loc) · 1.82 KB
/
mac-deployment-aarch64.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
# 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
name: Gradle JPackage Build for Mac AArch64
on:
push:
branches: [ "main", "production" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
java: [ '21.0.1' ]
fail-fast: false
name: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Echo JAVA_HOME
run: echo $JAVA_HOME
- name: Verify Gradle Wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Execute fatJarAarch64
run: ./gradlew --info --stacktrace fatJarAarch64
- name: Execute jpackage
run: jpackage -i . -n MORTAR --icon Images/MORTAR-icon.icns --main-jar build/libs/MORTAR-fat-aarch64-1.2.1.0.jar -t dmg --app-version 1.2.1 --copyright "Copyright (C) 2024 Felix Baensch, Jonas Schaub; licensed under MIT license" --description "MORTAR - MOlecule fRagmenTAtion fRamework" --java-options "-Xms512m -Xmx4g" --about-url "https://github.com/FelixBaensch/MORTAR"
- name: Upload DMG as an artifact
uses: actions/upload-artifact@v4
with:
name: MORTAR-aarch64-1.2.1.dmg
path: ./*.dmg
retention-days: 30
compression-level: 0 # no compression since it makes no difference